Skip to content

Instantly share code, notes, and snippets.

@Stadicus
Last active March 9, 2018 13:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Stadicus/0f6df973c936d74200298dee3d50b688 to your computer and use it in GitHub Desktop.
bitcoind.service startup script for Medium article
[Unit]
Description=Bitcoin daemon
After=network.target
# for use with sendmail alert
#OnFailure=systemd-sendmail@%n
[Service]
User=bitcoin
Group=bitcoin
Type=forking
PIDFile=/home/bitcoin/.bitcoin/bitcoind.pid
ExecStart=/usr/local/bin/bitcoind -pid=/home/bitcoin/.bitcoin/bitcoind.pid
KillMode=process
Restart=always
TimeoutSec=120
RestartSec=30
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment