aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2012-06-18 15:39:49 -0700
committerrobiscool <robrob2626@yahoo.com>2012-06-18 15:39:49 -0700
commit4777e65b38baf3e3ed1d812d04e8b5be5446ca5b (patch)
treea0d18ee3157db921c2fb243f8f2dd93179c27016 /config/snort-dev
parentdd815bcf20cb92d18f810ed44bf04d0d1a4a0bf4 (diff)
downloadpfsense-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/snort-dev')
-rw-r--r--config/snort-dev/snort.inc10
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}...'");