]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- use killproc with pidfile
authoraredridel <aredridel@pld-linux.org>
Fri, 18 Nov 2005 21:25:08 +0000 (21:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd.init -> 1.4

lighttpd.init

index 9409446fb9ad1e44691c4051c2076dc16f0be180..36ddf4723cf40fe1eda7b58ad2aa0a5b7a135320 100644 (file)
@@ -45,7 +45,7 @@ case "$1" in
        # 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 @@ case "$1" in
                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 @@ case "$1" in
   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
This page took 0.056314 seconds and 4 git commands to generate.