aboutsummaryrefslogtreecommitdiff
path: root/contrib/init/bitcoind.service
diff options
context:
space:
mode:
authorAdam Weiss <adam@signal11.com>2014-07-31 11:56:17 -0400
committerAdam Weiss <adam@signal11.com>2014-09-09 16:58:06 -0400
commit234bfbf6a5fcba37e510e9cb6c1f2a629cd0290e (patch)
treeb9712699be08c4bcf48c669cbfc85c1c47bfba21 /contrib/init/bitcoind.service
parent8b4616bab3d6badabbcce7d73baf4c74bf2fd854 (diff)
Add init scripts and docs for Upstart and OpenRC
Diffstat (limited to 'contrib/init/bitcoind.service')
-rw-r--r--contrib/init/bitcoind.service22
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