Skip to content

Instantly share code, notes, and snippets.

@Stadicus
Last active Mar 9, 2018
Embed
What would you like to do?
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