Last active
March 9, 2018 13:35
-
-
Save Stadicus/0f6df973c936d74200298dee3d50b688 to your computer and use it in GitHub Desktop.
bitcoind.service startup script for Medium article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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