aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/snort/snort_check_for_rule_updates.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index 153278eb..3871b813 100644
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -399,9 +399,12 @@ if ($snortdownload == 'on' || $emergingthreats == 'on') {
}
}
- 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(gettext("Snort has restarted with your new set of rules..."));
+ 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(gettext("Snort has restarted with your new set of rules..."));
+ } else
+ log_error(gettext("Snort Rules update finished..."));
}
update_status(gettext("The Rules update finished..."));