diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-04 12:54:32 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-04 12:54:32 -0500 |
commit | f132caa07f3691132fbfb921840d1b9603a9f5b2 (patch) | |
tree | 4d24f07a416f7ad6777c60e6c71007b554ce4e72 /config/suricata | |
parent | fde61fa3cafa4c850757d39a5c00eb631c080730 (diff) | |
download | pfsense-packages-f132caa07f3691132fbfb921840d1b9603a9f5b2.tar.gz pfsense-packages-f132caa07f3691132fbfb921840d1b9603a9f5b2.tar.bz2 pfsense-packages-f132caa07f3691132fbfb921840d1b9603a9f5b2.zip |
No SIGHUP required to Suricata when clearing logs, so remove calls.
Diffstat (limited to 'config/suricata')
-rw-r--r-- | config/suricata/suricata_alerts.php | 1 | ||||
-rw-r--r-- | config/suricata/suricata_check_cron_misc.inc | 6 |
2 files changed, 0 insertions, 7 deletions
diff --git a/config/suricata/suricata_alerts.php b/config/suricata/suricata_alerts.php index 75f21333..3b135f32 100644 --- a/config/suricata/suricata_alerts.php +++ b/config/suricata/suricata_alerts.php @@ -280,7 +280,6 @@ if ($_POST['delete']) { fclose($fd); /* XXX: This is needed if suricata is run as suricata user */ mwexec('/bin/chmod 660 {$suricatalogdir}*', true); - sigkillbypid("{$g['varrun_path']}/suricata_{$if_real}{$suricata_uuid}.pid", "HUP"); header("Location: /suricata/suricata_alerts.php?instance={$instanceid}"); exit; } diff --git a/config/suricata/suricata_check_cron_misc.inc b/config/suricata/suricata_check_cron_misc.inc index 2fdc7832..b2678059 100644 --- a/config/suricata/suricata_check_cron_misc.inc +++ b/config/suricata/suricata_check_cron_misc.inc @@ -95,12 +95,6 @@ if ($suricatalogdirsizeKB > 0 && $suricatalogdirsizeKB > $suricataloglimitsizeKB // This is needed if suricata is run as suricata user mwexec('/bin/chmod 660 /var/log/suricata/*', true); - - // Soft-restart Suricata process to resync logging - if (file_exists("{$g['varrun_path']}/suricata_{$if_real}{$suricata_uuid}.pid")) { - log_error(gettext("[Suricata] Restarting logging on {$value['descr']} ({$if_real})...")); - mwexec("/bin/pkill -HUP -F {$g['varrun_path']}/suricata_{$if_real}{$suricata_uuid}.pid -a"); - } } conf_mount_ro(); log_error(gettext("[Suricata] Automatic clean-up of Suricata logs completed.")); |