]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- use pidfile so only one instance is killed
authoraredridel <aredridel@pld-linux.org>
Fri, 18 Nov 2005 21:18:37 +0000 (21:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd.init -> 1.3

lighttpd.init

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