Skip to content

Instantly share code, notes, and snippets.

@valesi
Created March 22, 2017 19:47
Show Gist options
  • Save valesi/c978584e0ac016012dbe6228bde827d7 to your computer and use it in GitHub Desktop.
Save valesi/c978584e0ac016012dbe6228bde827d7 to your computer and use it in GitHub Desktop.
bitcoind systemd
[Unit]
Description=Bitcoin daemon
After=network.target
[Service]
User=bitcoin
Group=bitcoin
Type=forking
PIDFile=/srv/bitcoind/bitcoind.pid
ExecStart=/srv/node/bin/live/bitcoind -daemon -pid=/srv/bitcoind/bitcoind.pid \
-conf=/srv/bitcoind/bitcoin.conf -datadir=/srv/bitcoind -disablewallet
Restart=on-abnormal
RestartSec=10s
PrivateTmp=true
TimeoutStopSec=300s
TimeoutStartSec=5s
StartLimitInterval=60s
StartLimitBurst=5
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment