]> git.pld-linux.org Git - packages/apache.git/commitdiff
- better way (backport from HEAD) auto/ac/apache1-1_3_29-2 auto/ac/apache1-1_3_29-3
authorPaweł Gołaszewski <blues@pld-linux.org>
Tue, 22 Jul 2003 12:21:10 +0000 (12:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1.init -> 1.8

apache1.init

index 1e006aef8d13fe560d1ef69b0729a05b5f4477b0..929ffa338d2005d9e880364dd4621359e2b54d5a 100644 (file)
@@ -63,21 +63,23 @@ case "$1" in
        RETVAL=$?
        /usr/sbin/httpd -S
        ;;
-  reload)
+  restart)
+       $0 stop
+       $0 start
+       exit $?
+       ;;
+  reload|force-reload)
        if [ -f /var/lock/subsys/httpd ]; then
                msg_reloading httpd
-               kill -HUP `pidof httpd`
+               killproc httpd -HUP
+               RETVAL=$?
        else
-               msg_not_running httpd
+               msg_not_running httpd >&2
+               RETVAL=7
        fi
        ;;
-  restart|force-reload)
-       $0 stop
-       $0 start
-       exit $?
-       ;;
   *)
-       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
        exit 3
        ;;
 esac
This page took 0.122984 seconds and 4 git commands to generate.