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}"
32
32
start_stop_daemon_args="-u ${BITCOIND_USER} \
33
33
-N ${BITCOIND_NICE} -w 2000"
34
34
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}"
36
40
37
41
depend() {
38
42
need localmount net
Original file line number Diff line number Diff line change 25
25
# Additional options (avoid -conf and -datadir, use flags above)
26
26
BITCOIND_OPTS="-disablewallet"
27
27
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