Skip to content

Commit 663f6cd

Browse files
committed
contrib: Use -daemonwait in systemd init script
Closes #21322 by making bitcoind conform to behavior specified for `type=forking`.
1 parent 92cf3a2 commit 663f6cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/init/bitcoind.service

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ After=network-online.target
1818
Wants=network-online.target
1919

2020
[Service]
21-
ExecStart=/usr/bin/bitcoind -daemon \
21+
ExecStart=/usr/bin/bitcoind -daemonwait \
2222
-pid=/run/bitcoind/bitcoind.pid \
2323
-conf=/etc/bitcoin/bitcoin.conf \
2424
-datadir=/var/lib/bitcoind
@@ -33,6 +33,7 @@ ExecStartPre=/bin/chgrp bitcoin /etc/bitcoin
3333
Type=forking
3434
PIDFile=/run/bitcoind/bitcoind.pid
3535
Restart=on-failure
36+
TimeoutStartSec=infinity
3637
TimeoutStopSec=600
3738

3839
# Directory creation and permissions

0 commit comments

Comments
 (0)