]> git.pld-linux.org Git - packages/apache.git/commitdiff
- touch /var/lock/subsys/httpd only after run httpd,
authorkloczek <kloczek@pld-linux.org>
Wed, 16 Feb 2000 23:11:11 +0000 (23:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- enhanced status (added /usr/sbin/httpd -S).

Changed files:
    apache.init -> 1.6

apache.init

index fe6089aa11733abe20f27a143f52866d0de7349f..922ef7f188e8f078e2ba6d9b867b853e45e1c3dd 100644 (file)
@@ -34,10 +34,10 @@ case "$1" in
        if [ ! -f /var/lock/subsys/httpd ]; then
                show Starting httpd
                daemon httpd
+               touch /var/lock/subsys/httpd
        else
                echo "httpd already is running"
        fi
-       touch /var/lock/subsys/httpd
        ;;
   stop)
        show Shutting down httpd
@@ -46,6 +46,7 @@ case "$1" in
        ;;
   status)
        status httpd
+       /usr/sbin/httpd -S
        ;;
   restart|reload)
        $0 stop
This page took 0.454402 seconds and 4 git commands to generate.