File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ required_files="${BITCOIND_CONFIGFILE}"
3232start_stop_daemon_args="-u ${BITCOIND_USER} \
3333 -N ${BITCOIND_NICE} -w 2000"
3434pidfile="${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
3741depend() {
3842 need localmount net
Original file line number Diff line number Diff line change 2525# Additional options (avoid -conf and -datadir, use flags above)
2626BITCOIND_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
You can’t perform that action at this time.
0 commit comments