]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- use new feature in 1.4.3 of doing graceful shutdown on restart
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 3 Sep 2005 17:20:37 +0000 (17:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd.init -> 1.2

lighttpd.init

index d13505de991de46e8cf97474018bdd152eb92e7b..1bae6bf136607ed7bf38fcf6803446b2f78d1ad9 100644 (file)
@@ -56,7 +56,13 @@ case "$1" in
        RETVAL=$?
        ;;
   restart)
-       $0 stop
+       if [ -f /var/lock/subsys/lighttpd ]; then
+               msg_stopping lighttpd
+               # sending INT signal will make lighttpd close all listening sockets and
+               # wait for client connections to terminate.
+               killproc lighttpd -INT
+               rm -f /var/lock/subsys/lighttpd >/dev/null 2>&1
+       fi
        $0 start
        ;;
   reload|force-reload|graceful)
This page took 0.088904 seconds and 4 git commands to generate.