aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-23 22:13:19 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-23 22:13:19 -0400
commit51a7f9ee7513ef18ebfb7483988314ab413b33f4 (patch)
treef464b69d3de85a224794e08164d3a707a95ea2cd
parentd37f7032b325e6816388fa932d1d01bce58305b5 (diff)
downloadpfsense-packages-51a7f9ee7513ef18ebfb7483988314ab413b33f4.tar.gz
pfsense-packages-51a7f9ee7513ef18ebfb7483988314ab413b33f4.tar.bz2
pfsense-packages-51a7f9ee7513ef18ebfb7483988314ab413b33f4.zip
use -hup when httpd is already started
-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() {