diff options
author | Ermal Luçi <ermal.luci@gmail.com> | 2012-11-02 11:55:18 +0100 |
---|---|---|
committer | Ermal Luçi <ermal.luci@gmail.com> | 2012-11-02 11:55:18 +0100 |
commit | df646c67601e4be05bde4d7af46bc28aa841d475 (patch) | |
tree | 3de1322020bd105ee0129262d2c9f0c40b9652e1 /config | |
parent | d12fb47fb84ca2d531b33e4c9eb5fc4742f2364d (diff) | |
download | pfsense-packages-df646c67601e4be05bde4d7af46bc28aa841d475.tar.gz pfsense-packages-df646c67601e4be05bde4d7af46bc28aa841d475.tar.bz2 pfsense-packages-df646c67601e4be05bde4d7af46bc28aa841d475.zip |
Always restart snort after a rules update.
Diffstat (limited to 'config')
-rw-r--r-- | config/snort/snort_check_for_rule_updates.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index 689b3174..d4f990a4 100644 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -395,12 +395,10 @@ if ($snortdownload == 'on' || $emergingthreats == 'on') { } } - if (is_process_running("snort")) { - exec("/bin/sh /usr/local/etc/rc.d/snort.sh restart"); - update_output_window(gettext("Snort has restarted with your new set of rules...")); - log_error("Snort has restarted with your new set of rules..."); - } else - log_error("Snort Rules update finished..."); + exec("/bin/sh /usr/local/etc/rc.d/snort.sh restart"); + update_output_window(gettext("Snort has restarted with your new set of rules...")); + log_error("Snort has restarted with your new set of rules..."); + } update_status(gettext("The Rules update finished...")); |