From 00ab488f59c5aacbcab9708a1c70b142520264d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 7 Oct 2014 16:15:50 +0300 Subject: [PATCH] add RESTART_DELAY parameter to sleep between stop and start --- apache.init | 2 ++ apache.sysconfig | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 apache.init diff --git a/apache.init b/apache.init old mode 100644 new mode 100755 index 8ce5a86..00dd2f4 --- a/apache.init +++ b/apache.init @@ -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) diff --git a/apache.sysconfig b/apache.sysconfig index c76349c..bc192b8 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" @@ -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 -- 2.44.0