From 51a7f9ee7513ef18ebfb7483988314ab413b33f4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 23 Jun 2009 22:13:19 -0400 Subject: use -hup when httpd is already started --- config/apache_mod_security/apache_mod_security.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/apache_mod_security') diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc index 108c2347..3fc81f85 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -41,8 +41,11 @@ function apache_mod_security_stop() { } function apache_mod_security_restart() { - apache_mod_security_stop(); - apache_mod_security_start(); + if(is_process_running("httpd")) { + exec("/usr/bin/killall -HUP httpd"); + } else { + apache_mod_security_start(); + } } function apache_mod_security_install() { -- cgit v1.2.3