mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Merge pull request #6401
8c44e63
Add BITCOIND_SIGTERM_TIMEOUT to OpenRC init scripts (Florian Schmaus)
This commit is contained in:
commit
6db53b4332
@ -32,7 +32,11 @@ required_files="${BITCOIND_CONFIGFILE}"
|
|||||||
start_stop_daemon_args="-u ${BITCOIND_USER} \
|
start_stop_daemon_args="-u ${BITCOIND_USER} \
|
||||||
-N ${BITCOIND_NICE} -w 2000"
|
-N ${BITCOIND_NICE} -w 2000"
|
||||||
pidfile="${BITCOIND_PIDFILE}"
|
pidfile="${BITCOIND_PIDFILE}"
|
||||||
retry=60
|
|
||||||
|
# The retry schedule to use when stopping the daemon. Could be either
|
||||||
|
# a timeout in seconds or multiple signal/timeout pairs (like
|
||||||
|
# "SIGKILL/180 SIGTERM/300")
|
||||||
|
retry="${BITCOIND_SIGTERM_TIMEOUT}"
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need localmount net
|
need localmount net
|
||||||
|
@ -25,3 +25,9 @@
|
|||||||
# Additional options (avoid -conf and -datadir, use flags above)
|
# Additional options (avoid -conf and -datadir, use flags above)
|
||||||
BITCOIND_OPTS="-disablewallet"
|
BITCOIND_OPTS="-disablewallet"
|
||||||
|
|
||||||
|
# The timeout in seconds OpenRC will wait for bitcoind to terminate
|
||||||
|
# after a SIGTERM has been raised.
|
||||||
|
# Note that this will be mapped as argument to start-stop-daemon's
|
||||||
|
# '--retry' option, which means you can specify a retry schedule
|
||||||
|
# here. For more information see man 8 start-stop-daemon.
|
||||||
|
BITCOIND_SIGTERM_TIMEOUT=60
|
||||||
|
Loading…
Reference in New Issue
Block a user