diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-16 11:05:18 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-16 11:05:38 +0200 |
commit | 2d782ab2ce30bf106e34cd3288c9082ac04022f9 (patch) | |
tree | 8c9546e42f479644b0afc075772a7dffdcf281ac /contrib/init/bitcoind.service | |
parent | edb1eebabccc1b05ae6cc8065eda53a36cdca3ad (diff) | |
parent | 234bfbf6a5fcba37e510e9cb6c1f2a629cd0290e (diff) | |
download | bitcoin-2d782ab2ce30bf106e34cd3288c9082ac04022f9.tar.xz |
Merge pull request #4611
234bfbf Add init scripts and docs for Upstart and OpenRC (Adam Weiss)
Diffstat (limited to 'contrib/init/bitcoind.service')
-rw-r--r-- | contrib/init/bitcoind.service | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/init/bitcoind.service b/contrib/init/bitcoind.service new file mode 100644 index 0000000000..9132957c38 --- /dev/null +++ b/contrib/init/bitcoind.service @@ -0,0 +1,22 @@ +[Unit] +Description=Bitcoin's distributed currency daemon +After=network.target + +[Service] +User=bitcoin +Group=bitcoin + +Type=forking +PIDFile=/var/lib/bitcoind/bitcoind.pid +ExecStart=/usr/bin/bitcoind -daemon -pid=/var/lib/bitcoind/bitcoind.pid \ +-conf=/etc/bitcoin/bitcoin.conf -datadir=/var/lib/bitcoind -disablewallet + +Restart=always +PrivateTmp=true +TimeoutStopSec=60s +TimeoutStartSec=2s +StartLimitInterval=120s +StartLimitBurst=5 + +[Install] +WantedBy=multi-user.target |