[tor-commits] [tor/maint-0.3.5] systemd: allow tor some time to shut down after ShutdownWaitLength expires
nickm at torproject.org
nickm at torproject.org
Tue Nov 6 20:22:16 UTC 2018
commit bd0e38dcfeb63303af83069e4e1e4c70982c56d7
Author: teor <teor at torproject.org>
Date: Mon Nov 5 11:23:55 2018 +1000
systemd: allow tor some time to shut down after ShutdownWaitLength expires
This commit upstreams the Debian package setting of 60 seconds for
TimeoutStopSec, but applies it to startup and shutdown.
Part of 28113.
---
changes/ticket28113 | 4 +++-
contrib/dist/tor.service.in | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/changes/ticket28113 b/changes/ticket28113
index 2585514b8..30dd825a9 100644
--- a/changes/ticket28113
+++ b/changes/ticket28113
@@ -1,3 +1,5 @@
o Minor bugfixes (relay shutdown, systemd):
- Notify systemd of ShutdownWaitLength so it can be set to longer than
- systemd's TimeoutStopSec. Fixes bug 28113; bugfix on 0.2.6.2-alpha.
+ systemd's TimeoutStopSec. In tor's systemd service file, set
+ TimeoutSec to 60 seconds, to allow tor some time to shut down.
+ Fixes bug 28113; bugfix on 0.2.6.2-alpha.
diff --git a/contrib/dist/tor.service.in b/contrib/dist/tor.service.in
index 9c1a255b2..e857a8664 100644
--- a/contrib/dist/tor.service.in
+++ b/contrib/dist/tor.service.in
@@ -15,7 +15,7 @@ ExecStartPre=@BINDIR@/tor -f @CONFDIR@/torrc --verify-config
ExecStart=@BINDIR@/tor -f @CONFDIR@/torrc
ExecReload=/bin/kill -HUP ${MAINPID}
KillSignal=SIGINT
-TimeoutSec=30
+TimeoutSec=60
Restart=on-failure
WatchdogSec=1m
LimitNOFILE=32768
More information about the tor-commits
mailing list