Set init stop timeout to 10 min

`bitcoind` can take a long time to flush its db cache to disk upon
shutdown. Most init files send a `SIGKILL` after a timeout of 1 minute,
causing unclean shutdowns and triggering a long "Rolling forward" at the
next startup. Increasing this timeout to 10 minutes should reduce how
often this occurs, especially during IBD.

fixup! Set ProtectHome in systemd service file
This commit is contained in:
setpill
2019-08-08 11:56:45 +02:00
parent fbe4b7665b
commit 7fb7acfc20
4 changed files with 4 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ ExecStart=/usr/bin/bitcoind -daemon \
Type=forking
PIDFile=/run/bitcoind/bitcoind.pid
Restart=on-failure
TimeoutStopSec=600
# Directory creation and permissions
####################################