SOURCES: lighttpd.init - use killproc with pidfile
aredridel
aredridel at pld-linux.org
Fri Nov 18 22:25:14 CET 2005
Author: aredridel Date: Fri Nov 18 21:25:13 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use killproc with pidfile
---- Files affected:
SOURCES:
lighttpd.init (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/lighttpd.init
diff -u SOURCES/lighttpd.init:1.3 SOURCES/lighttpd.init:1.4
--- SOURCES/lighttpd.init:1.3 Fri Nov 18 22:18:37 2005
+++ SOURCES/lighttpd.init Fri Nov 18 22:25:08 2005
@@ -45,7 +45,7 @@
# Stop daemons.
if [ -f /var/lock/subsys/lighttpd ]; then
msg_stopping lighttpd
- kill `cat /var/run/lighttpd.pid`
+ killproc --pidfile /var/run/lighttpd.pid lighttpd
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.
- kill -INT `cat /var/run/lighttpd.pid`
+ killproc --pidfile /var/run/lighttpd.pid lighttpd -INT
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
- kill -HUP `cat /var/run/lighttpd.pid`
+ killproc --pidfile /var/run/lighttpd.pid lighttpd -HUP
RETVAL=$?
else
msg_not_running lighttpd
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/lighttpd.init?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list