mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
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.
This commit is contained in:
parent
0d6d3e1f26
commit
bd0e38dcfe
@ -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.
|
||||
|
2
contrib/dist/tor.service.in
vendored
2
contrib/dist/tor.service.in
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user