diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-23 22:13:19 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-23 22:13:19 -0400 |
commit | 51a7f9ee7513ef18ebfb7483988314ab413b33f4 (patch) | |
tree | f464b69d3de85a224794e08164d3a707a95ea2cd /config/apache_mod_security | |
parent | d37f7032b325e6816388fa932d1d01bce58305b5 (diff) | |
download | pfsense-packages-51a7f9ee7513ef18ebfb7483988314ab413b33f4.tar.gz pfsense-packages-51a7f9ee7513ef18ebfb7483988314ab413b33f4.tar.bz2 pfsense-packages-51a7f9ee7513ef18ebfb7483988314ab413b33f4.zip |
use -hup when httpd is already started
Diffstat (limited to 'config/apache_mod_security')
-rw-r--r-- | config/apache_mod_security/apache_mod_security.inc | 7 |
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() { |