]> git.pld-linux.org Git - packages/apache1.git/commitdiff
- unify apache initscripts
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 15 Oct 2008 12:48:51 +0000 (12:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1.init -> 1.29

apache1.init

index cdcfe019762fbad0a5cad9f96d4e9ebe6f7998a7..5503f205ff94d83ec1753675060c2507e3849968 100644 (file)
@@ -87,13 +87,13 @@ restart() {
                start
        else
                fail
-               echo >&2 "Configuration file syntax test failed."
+               echo >&2 "Configuration file syntax test failed. Run $0 configtest to see errors."
        fi
 }
 
 reload() {
-       sig=${1:-HUP}
-       retnr=${2:-7}
+       local sig=${1:-HUP}
+       local retnr=${2:-7}
        if [ -f /var/lock/subsys/apache ]; then
                msg_reloading apache
 
@@ -103,7 +103,7 @@ reload() {
                        RETVAL=$?
                else
                        fail
-                       echo >&2 "Configuration file syntax test failed."
+                       echo >&2 "Configuration file syntax test failed. Run $0 configtest to see errors."
                fi
        else
                msg_not_running apache
@@ -120,11 +120,6 @@ case "$1" in
   stop)
        stop
        ;;
-  status)
-       status apache
-       RETVAL=$?
-       /usr/sbin/apache -S
-       ;;
   restart)
        restart
        ;;
@@ -147,6 +142,11 @@ case "$1" in
   configtest)
        /usr/sbin/apache -t
        ;;
+  status)
+       status apache
+       RETVAL=$?
+       /usr/sbin/apache -S
+       ;;
   *)
        msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|graceful|configtest|status}"
        exit 3
This page took 0.05647 seconds and 4 git commands to generate.