Skip to content

Commit c46f1ce

Browse files
committed
Merge #21418: contrib: Make systemd invoke dependencies only when ready
663f6cd contrib: Use -daemonwait in systemd init script (Wladimir J. van der Laan) Pull request description: Make systemd invoke dependencies only when ready by using `-daemonwait` in the service file instead of `-daemon`. Closes #21322 by making bitcoind conform to behavior specified for `type=forking`. This may need some tuning of timeouts. ACKs for top commit: darosior: ACK 663f6cd hebasto: re-ACK 663f6cd Tree-SHA512: 890005852b632a202caa578e6c796ebdc9da0b2379a9157a4f56f7db9d193c0ffbb78d120bbf112ab2f273855f2a08c3da000b1f7a9fb5222a3b94dcdb16b878
2 parents 1e4a3c0 + 663f6cd commit c46f1ce

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)