diff options
author | robiscool <robrob2626@yahoo.com> | 2012-06-18 15:39:49 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2012-06-18 15:39:49 -0700 |
commit | 4777e65b38baf3e3ed1d812d04e8b5be5446ca5b (patch) | |
tree | a0d18ee3157db921c2fb243f8f2dd93179c27016 /config | |
parent | dd815bcf20cb92d18f810ed44bf04d0d1a4a0bf4 (diff) | |
download | pfsense-packages-4777e65b38baf3e3ed1d812d04e8b5be5446ca5b.tar.gz pfsense-packages-4777e65b38baf3e3ed1d812d04e8b5be5446ca5b.tar.bz2 pfsense-packages-4777e65b38baf3e3ed1d812d04e8b5be5446ca5b.zip |
snort-dev, fix start/stop issue on snort_interfaces.php
Diffstat (limited to 'config')
-rw-r--r-- | config/snort-dev/snort.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc index 267093c7..32519cf1 100644 --- a/config/snort-dev/snort.inc +++ b/config/snort-dev/snort.inc @@ -274,21 +274,23 @@ function Running_Stop($snort_uuid, $if_real, $id) { /* * TODO: Add a GUI option that lets the user keep full logs */ - /* - if ($start_up != '') { + if (!empty($start_up)) { @exec("/bin/kill {$start_up}"); + /* @exec("/bin/rm /var/log/snort/run/snort_{$if_real}{$snort_uuid}*"); @exec("/bin/rm /var/log/snort/{$snort_uuid}_{$if_real}/snort.u1*"); @exec("/bin/rm /var/log/snort/{$snort_uuid}_{$if_real}/snort.u2*"); + */ } - if ($start_upb != '') { + if (!empty($start_upb)) { @exec("/bin/kill {$start_upb}"); + /* @exec("/bin/rm /var/log/snort/run/barnyard2_{$snort_uuid}_{$if_real}*"); @exec("/bin/rm /var/log/snort/barnyard2/{$snort_uuid}_{$if_real}/snort.u1*"); @exec("/bin/rm /var/log/snort/barnyard2/{$snort_uuid}_{$if_real}/snort.u2*"); + */ } - */ /* Log Iface stop */ exec("/usr/bin/logger -p daemon.info -i -t SnortStartup 'Interface Rule STOP for {$snort_uuid}_{$if_real}...'"); |