]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.init
drop webserver(reqtimeout)
[packages/apache.git] / apache.init
old mode 100644 (file)
new mode 100755 (executable)
index 5960a47..79d02bc
@@ -81,8 +81,11 @@ start() {
                return
        fi
 
-       checkconfig
+       [ "$1" -eq 0 ] || checkconfig
        msg_starting "$SVC_NAME"
+       # remove ssl_scache on startup, otherwise httpd may go into
+       # infinite loop if there are db transaction logs laying around
+       rm -f /var/cache/httpd/*ssl_scache*
        daemon --pidfile /var/run/httpd.pid /usr/sbin/httpd.${HTTPD_MPM} $CFG $HTTPD_OPTS
        RETVAL=$?
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/httpd
@@ -125,6 +128,7 @@ condrestart() {
 
        checkconfig
        stop
+       [ "$RESTART_DELAY" ] && usleep $RESTART_DELAY
        start
 }
 
@@ -140,7 +144,8 @@ case "$1" in
   restart)
        checkconfig
        stop
-       start
+       [ "$RESTART_DELAY" ] && usleep $RESTART_DELAY
+       start 0
        ;;
   try-restart)
        condrestart 0
This page took 0.086703 seconds and 4 git commands to generate.