SOURCES: lighttpd.init - use pidfile so only one instance is killed
aredridel
aredridel at pld-linux.org
Fri Nov 18 22:18:42 CET 2005
Author: aredridel Date: Fri Nov 18 21:18:42 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use pidfile so only one instance is killed
---- Files affected:
SOURCES:
lighttpd.init (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/lighttpd.init
diff -u SOURCES/lighttpd.init:1.2 SOURCES/lighttpd.init:1.3
--- SOURCES/lighttpd.init:1.2 Sat Sep 3 19:20:37 2005
+++ SOURCES/lighttpd.init Fri Nov 18 22:18:37 2005
@@ -45,7 +45,7 @@
# Stop daemons.
if [ -f /var/lock/subsys/lighttpd ]; then
msg_stopping lighttpd
- killproc lighttpd
+ kill `cat /var/run/lighttpd.pid`
rm -f /var/lock/subsys/lighttpd >/dev/null 2>&1
else
msg_not_running lighttpd
@@ -60,7 +60,7 @@
msg_stopping lighttpd
# sending INT signal will make lighttpd close all listening sockets and
# wait for client connections to terminate.
- killproc lighttpd -INT
+ kill -INT `cat /var/run/lighttpd.pid`
rm -f /var/lock/subsys/lighttpd >/dev/null 2>&1
fi
$0 start
@@ -68,7 +68,7 @@
reload|force-reload|graceful)
if [ -f /var/lock/subsys/lighttpd ]; then
msg_reloading lighttpd
- killproc lighttpd -HUP
+ kill -HUP `cat /var/run/lighttpd.pid`
RETVAL=$?
else
msg_not_running lighttpd
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/lighttpd.init?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list