diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-10-04 12:29:32 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-12-15 12:04:40 -0500 |
commit | 7dcab24564e9d96eb8d3bfd9d609b9de1ef62225 (patch) | |
tree | 7833018bbb9d9a8645342a5851888c7155118679 | |
parent | 89a56d91fc3c70551969b6c7417ffafb48d21988 (diff) | |
download | pfsense-packages-7dcab24564e9d96eb8d3bfd9d609b9de1ef62225.tar.gz pfsense-packages-7dcab24564e9d96eb8d3bfd9d609b9de1ef62225.tar.bz2 pfsense-packages-7dcab24564e9d96eb8d3bfd9d609b9de1ef62225.zip |
Don't restart Suricata after rules update during post-install process.
-rw-r--r-- | config/suricata/suricata_check_for_rule_updates.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/suricata/suricata_check_for_rule_updates.php b/config/suricata/suricata_check_for_rule_updates.php index 21808f97..da61caf2 100644 --- a/config/suricata/suricata_check_for_rule_updates.php +++ b/config/suricata/suricata_check_for_rule_updates.php @@ -707,8 +707,8 @@ if ($snortdownload == 'on' || $emergingthreats == 'on' || $snortcommunityrules = /* Clear the rebuild rules flag. */ $rebuild_rules = false; - /* Restart Suricata if already running and we are not rebooting to pick up the new rules. */ - if (is_process_running("suricata") && !$g['booting'] && + /* Restart Suricata if already running and we are not in post-install, so as to pick up the new rules. */ + if (is_process_running("suricata") && !$g['suricata_postinstall'] && !empty($config['installedpackages']['suricata']['rule'])) { // See if "Live Reload" is configured and signal each Suricata instance |