aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2021-03-11 15:31:13 +0100
committerWladimir J. van der Laan <laanwj@protonmail.com>2021-03-22 13:42:13 +0100
commit663f6cd9ddadeec30b27ec12f0f5ed49f3146cc9 (patch)
tree38e64d1f53f437ae788d377c15ea10ca66332d0c /contrib
parent92cf3a22e3c79ce28c5cc9dcbc18348c43cbe4d9 (diff)
contrib: Use -daemonwait in systemd init script
Closes #21322 by making bitcoind conform to behavior specified for `type=forking`.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/init/bitcoind.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/init/bitcoind.service b/contrib/init/bitcoind.service
index 5999928aa4..93de353bb4 100644
--- a/contrib/init/bitcoind.service
+++ b/contrib/init/bitcoind.service
@@ -18,7 +18,7 @@ After=network-online.target
Wants=network-online.target
[Service]
-ExecStart=/usr/bin/bitcoind -daemon \
+ExecStart=/usr/bin/bitcoind -daemonwait \
-pid=/run/bitcoind/bitcoind.pid \
-conf=/etc/bitcoin/bitcoin.conf \
-datadir=/var/lib/bitcoind
@@ -33,6 +33,7 @@ ExecStartPre=/bin/chgrp bitcoin /etc/bitcoin
Type=forking
PIDFile=/run/bitcoind/bitcoind.pid
Restart=on-failure
+TimeoutStartSec=infinity
TimeoutStopSec=600
# Directory creation and permissions