Use SIGINT to shutdown tor

svn:r3504
This commit is contained in:
Peter Palfrader
2005-02-02 06:49:07 +00:00
parent f575d29a59
commit 0133411df9
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -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."