-
-
Save D4rk4/6aabc51f22c7ec65c94de6199561ba9f to your computer and use it in GitHub Desktop.
Bitcoind Systemd script
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's distributed currency daemon | |
After=network.target | |
[Service] | |
User=bitcoin | |
Group=bitcoin | |
Type=forking | |
PIDFile=/srv/blockchain/bitcoin/bitcoind.pid | |
ExecStart=/usr/bin/bitcoind -daemon -pid=/srv/blockchain/bitcoin/bitcoind.pid \ | |
-conf=/srv/blockchain/bitcoin/bitcoind.conf -datadir=/srv/blockchain/bitcoin/ -disablewallet | |
ExecStop=/usr/bin/bitcoin-cli stop | |
KillMode=process | |
Restart=on-failure | |
TimeoutSec=120 | |
Nice=19 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment