]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.init
add RESTART_DELAY parameter to sleep between stop and start
[packages/apache.git] / apache.init
old mode 100644 (file)
new mode 100755 (executable)
index 2a600bb..00dd2f4
 # Check that networking is up.
 if is_yes "${NETWORKING}"; then
        if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
-               msg_network_down "Apache 2.2 Web Server"
+               msg_network_down "Apache 2.4 Web Server"
                exit 1
        fi
 else
        exit 0
 fi
 
-SVC_NAME="Apache 2.2 Web Server"
+SVC_NAME="Apache 2.4 Web Server"
 
 if [ -n "${HTTPD_CONF}" ]; then
        if [ -d "${HTTPD_CONF}" ] || [ -f "${HTTPD_CONF}" ]; then
@@ -127,6 +127,7 @@ condrestart() {
 
        checkconfig
        stop
+       [ "$RESTART_DELAY" ] && usleep $RESTART_DELAY
        start
 }
 
@@ -142,6 +143,7 @@ case "$1" in
   restart)
        checkconfig
        stop
+       [ "$RESTART_DELAY" ] && usleep $RESTART_DELAY
        start 0
        ;;
   try-restart)
This page took 0.035143 seconds and 4 git commands to generate.