Created
July 6, 2016 06:17
-
-
Save mariodian/c649cda70291dbc6e083bdc410e6f8aa 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=pi | |
Group=pi | |
Type=forking | |
PIDFile=/var/lib/bitcoind/bitcoind.pid | |
ExecStart=/usr/local/bin/bitcoind -daemon | |
ExecStop=/usr/local/bin/bitcoin-cli stop | |
KillMode=process | |
Restart=on-failure | |
TimeoutSec=120 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can use Type=simple and no -daemon along with -nodebuglogfile to have it use journald, saving that disk access, and also not needing bitcoin-cli stop.