mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Use SIGINT to shutdown tor
svn:r3504
This commit is contained in:
Vendored
+2
-2
@@ -8,7 +8,7 @@ NAME=tor
|
||||
DESC="tor daemon"
|
||||
TORPID=/var/run/tor/tor.pid
|
||||
DEFAULTSFILE=/etc/default/$NAME
|
||||
WAITFORDAEMON=10
|
||||
WAITFORDAEMON=35
|
||||
ARGS=""
|
||||
MAX_FILEDESCRIPTORS=4096
|
||||
|
||||
@@ -64,7 +64,7 @@ case "$1" in
|
||||
if test ! -f $TORPID -o -z "$pid"
|
||||
then
|
||||
echo "not running (there is no $TORPID)."
|
||||
elif start-stop-daemon --stop --quiet --pidfile $TORPID --exec $DAEMON
|
||||
elif start-stop-daemon --stop --signal INT --quiet --pidfile $TORPID --exec $DAEMON
|
||||
then
|
||||
wait_for_deaddaemon $pid
|
||||
echo "$NAME."
|
||||
|
||||
Reference in New Issue
Block a user