]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
systemd: allow tor some time to shut down after ShutdownWaitLength expires
authorteor <teor@torproject.org>
Mon, 5 Nov 2018 01:23:55 +0000 (11:23 +1000)
committerteor <teor@torproject.org>
Mon, 5 Nov 2018 01:49:19 +0000 (11:49 +1000)
This commit upstreams the Debian package setting of 60 seconds for
TimeoutStopSec, but applies it to startup and shutdown.

Part of 28113.

changes/ticket28113
contrib/dist/tor.service.in

index 2585514b8a3c671661497ebafea8e912ae380743..30dd825a9b1f9385a87b27defd2e7ad2a8c3b24f 100644 (file)
@@ -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.
index 9c1a255b2ec8723b706af491880fbd9bd6f03455..e857a8664ed12ca72dd1f6ac592ee3d041c7c540 100644 (file)
@@ -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