]> git.pld-linux.org Git - packages/apache.git/commitdiff
add RESTART_DELAY parameter to sleep between stop and start auto/ac/apache-2.2.29-1
authorElan Ruusamäe <glen@delfi.ee>
Tue, 7 Oct 2014 13:15:50 +0000 (16:15 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 30 Mar 2015 07:39:42 +0000 (10:39 +0300)
apache.init [changed mode: 0644->0755]
apache.sysconfig

old mode 100644 (file)
new mode 100755 (executable)
index 692c237..79d02bc
@@ -128,6 +128,7 @@ condrestart() {
 
        checkconfig
        stop
+       [ "$RESTART_DELAY" ] && usleep $RESTART_DELAY
        start
 }
 
@@ -143,6 +144,7 @@ case "$1" in
   restart)
        checkconfig
        stop
+       [ "$RESTART_DELAY" ] && usleep $RESTART_DELAY
        start 0
        ;;
   try-restart)
index 0643df2f1b5061a7aa6f1d7fd2b7a1ba7a16758c..ec218982f02e26dc8451cfcbb5cf55b2b116a4b6 100644 (file)
@@ -1,5 +1,4 @@
 # Customized settings for Apache
-# $Id$
 
 # Nice level for apache
 SERVICE_RUN_NICE_LEVEL="+5"
@@ -21,3 +20,6 @@ HTTPD_MPM="prefork"
 
 # Skip apache restarts invoked from rpm installs.
 #RPM_SKIP_AUTO_RESTART=yes
+
+# Delay in microseconds between stop and start to mitigate problems of third party Apache modules (PHP session ext
+#RESTART_DELAY=50000
This page took 0.535876 seconds and 4 git commands to generate.