aboutsummaryrefslogtreecommitdiff
path: root/contrib/init/bitcoind.openrcconf
diff options
context:
space:
mode:
authorFlorian Schmaus <flo@geekplace.eu>2015-07-08 22:35:29 +0200
committerFlorian Schmaus <flo@geekplace.eu>2015-07-08 22:53:22 +0200
commit8c44e63077ec89d3cb600a2d70e0d7cb0e17f109 (patch)
treef34cf1452d6b8d66bce3787f188d28278a6b1249 /contrib/init/bitcoind.openrcconf
parent11576a57d2ee37aa421e0fce69e70751b5af9a61 (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.openrcconf')
-rw-r--r--contrib/init/bitcoind.openrcconf6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/init/bitcoind.openrcconf b/contrib/init/bitcoind.openrcconf
index d8d7f58337..0cbff6d30d 100644
--- a/contrib/init/bitcoind.openrcconf
+++ b/contrib/init/bitcoind.openrcconf
@@ -25,3 +25,9 @@
# Additional options (avoid -conf and -datadir, use flags above)
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