Skip to content

Commit 6db53b4

Browse files
committed
Merge pull request #6401
8c44e63 Add BITCOIND_SIGTERM_TIMEOUT to OpenRC init scripts (Florian Schmaus)
2 parents 7fc25c2 + 8c44e63 commit 6db53b4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

contrib/init/bitcoind.openrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ required_files="${BITCOIND_CONFIGFILE}"
3232
start_stop_daemon_args="-u ${BITCOIND_USER} \
3333
-N ${BITCOIND_NICE} -w 2000"
3434
pidfile="${BITCOIND_PIDFILE}"
35-
retry=60
35+
36+
# The retry schedule to use when stopping the daemon. Could be either
37+
# a timeout in seconds or multiple signal/timeout pairs (like
38+
# "SIGKILL/180 SIGTERM/300")
39+
retry="${BITCOIND_SIGTERM_TIMEOUT}"
3640

3741
depend() {
3842
need localmount net

contrib/init/bitcoind.openrcconf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@
2525
# Additional options (avoid -conf and -datadir, use flags above)
2626
BITCOIND_OPTS="-disablewallet"
2727

28+
# The timeout in seconds OpenRC will wait for bitcoind to terminate
29+
# after a SIGTERM has been raised.
30+
# Note that this will be mapped as argument to start-stop-daemon's
31+
# '--retry' option, which means you can specify a retry schedule
32+
# here. For more information see man 8 start-stop-daemon.
33+
BITCOIND_SIGTERM_TIMEOUT=60

0 commit comments

Comments
 (0)