aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorErmal Luçi <ermal.luci@gmail.com>2012-11-02 11:59:04 +0100
committerErmal Luçi <ermal.luci@gmail.com>2012-11-02 11:59:04 +0100
commit3977d64b4851da69277604c2f7317377a3667c15 (patch)
tree0c669362a515a3073181c421e9a70e4a2ac7f8e3 /config/snort
parentdf646c67601e4be05bde4d7af46bc28aa841d475 (diff)
downloadpfsense-packages-3977d64b4851da69277604c2f7317377a3667c15.tar.gz
pfsense-packages-3977d64b4851da69277604c2f7317377a3667c15.tar.bz2
pfsense-packages-3977d64b4851da69277604c2f7317377a3667c15.zip
Check if snort is not running after rule update and HUP signal then restart it.
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort_check_for_rule_updates.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index d4f990a4..61479a15 100644
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -396,6 +396,9 @@ if ($snortdownload == 'on' || $emergingthreats == 'on') {
}
exec("/bin/sh /usr/local/etc/rc.d/snort.sh restart");
+ sleep(10);
+ if (!is_process_running("snort"))
+ exec("/bin/sh /usr/local/etc/rc.d/snort.sh start");
update_output_window(gettext("Snort has restarted with your new set of rules..."));
log_error("Snort has restarted with your new set of rules...");