]> git.pld-linux.org Git - packages/apache.git/commitdiff
add RESTART_DELAY parameter to sleep between stop and start feat/restart-delay-parameter
authorElan Ruusamäe <glen@delfi.ee>
Tue, 7 Oct 2014 13:15:50 +0000 (16:15 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 7 Oct 2014 13:15:50 +0000 (16:15 +0300)
apache.init [changed mode: 0644->0755]
apache.sysconfig

old mode 100644 (file)
new mode 100755 (executable)
index 8ce5a86..00dd2f4
@@ -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)
index c76349c09e40a262cdc991d8ed4c10f9e43f6bdc..bc192b8b1500125d42d3e3c838841f4269278a57 100644 (file)
@@ -1,5 +1,4 @@
 # Customized settings for Apache
-# $Id$
 
 # Nice level for apache
 SERVICE_RUN_NICE_LEVEL="+5"
@@ -16,3 +15,6 @@ HTTPD_OPTS=""
 
 # 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.127044 seconds and 4 git commands to generate.