diff options
author | Florian Schmaus <flo@geekplace.eu> | 2015-07-08 22:35:29 +0200 |
---|---|---|
committer | Florian Schmaus <flo@geekplace.eu> | 2015-07-08 22:53:22 +0200 |
commit | 8c44e63077ec89d3cb600a2d70e0d7cb0e17f109 (patch) | |
tree | f34cf1452d6b8d66bce3787f188d28278a6b1249 /contrib/init/bitcoind.openrc | |
parent | 11576a57d2ee37aa421e0fce69e70751b5af9a61 (diff) |
Add BITCOIND_SIGTERM_TIMEOUT to OpenRC init scripts
This allows users to specify, e.g. raise, the default timeout of 60
seconds. Some bitcoind instances, especially long running ones on slow
hardware, require a higher timeout for a clean shut down.
Also add a comment to bitcoind.openrc's 'retry=', since it is not
obvious from the variable name what it does.
Diffstat (limited to 'contrib/init/bitcoind.openrc')
-rw-r--r-- | contrib/init/bitcoind.openrc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/init/bitcoind.openrc b/contrib/init/bitcoind.openrc index a94f03680d..eda1a96fb4 100644 --- a/contrib/init/bitcoind.openrc +++ b/contrib/init/bitcoind.openrc @@ -32,7 +32,11 @@ required_files="${BITCOIND_CONFIGFILE}" start_stop_daemon_args="-u ${BITCOIND_USER} \ -N ${BITCOIND_NICE} -w 2000" 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() { need localmount net |