Skip to content

Instantly share code, notes, and snippets.

@D4rk4
Forked from mariodian/bitcoind.service
Last active June 21, 2018 10:35
Show Gist options
  • Save D4rk4/6aabc51f22c7ec65c94de6199561ba9f to your computer and use it in GitHub Desktop.
Save D4rk4/6aabc51f22c7ec65c94de6199561ba9f to your computer and use it in GitHub Desktop.
Bitcoind Systemd script
[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