[packages/apache/APACHE_2_2] add RESTART_DELAY parameter to sleep between stop and start
glen
glen at pld-linux.org
Mon Mar 30 09:39:54 CEST 2015
commit c0e515d49e2a06bb23e3a940fbdc37576a1e6db5
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Oct 7 16:15:50 2014 +0300
add RESTART_DELAY parameter to sleep between stop and start
apache.init | 2 ++
apache.sysconfig | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/apache.init b/apache.init
old mode 100644
new mode 100755
index 692c237..79d02bc
--- a/apache.init
+++ b/apache.init
@@ -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)
diff --git a/apache.sysconfig b/apache.sysconfig
index 0643df2..ec21898 100644
--- a/apache.sysconfig
+++ b/apache.sysconfig
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apache.git/commitdiff/c0e515d49e2a06bb23e3a940fbdc37576a1e6db5
More information about the pld-cvs-commit
mailing list