aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/apache_mod_security/apache_mod_security.inc7
1 files changed, 5 insertions, 2 deletions
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() {