aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-09-01 15:45:06 +0000
committerErmal <eri@pfsense.org>2011-09-01 15:45:06 +0000
commitbbf3b99723f9b3720070c06b71e0255900f91035 (patch)
tree7aece21e81b2150fe3f25d1e0f2cee01f91e60a7
parent7cf19a88096ec7b58ecbfe42cd5eb1c9e29f858b (diff)
downloadpfsense-packages-bbf3b99723f9b3720070c06b71e0255900f91035.tar.gz
pfsense-packages-bbf3b99723f9b3720070c06b71e0255900f91035.tar.bz2
pfsense-packages-bbf3b99723f9b3720070c06b71e0255900f91035.zip
Remove unneeded code
-rw-r--r--config/snort/snort.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 73931b22..06e89bf5 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -293,7 +293,7 @@ function Running_Stop($snort_uuid, $if_real, $id) {
global $config;
/* if snort.sh crashed this will remove the pid */
- exec('/bin/rm /tmp/snort.sh.pid');
+ @unlink('/tmp/snort.sh.pid');
$start_up_s = exec("/bin/ps -U snort | grep \"\-R {$snort_uuid}\" | awk '{ print \$1; }'");
$start_up_r = exec("/bin/ps -U root | grep \"\-R {$snort_uuid}\" | awk '{ print \$1; }'");
@@ -1251,7 +1251,6 @@ if [ "`/bin/ps -auwx | /usr/bin/grep -v grep | /usr/bin/grep "R {$snort_uuid}" |
# Start snort and barnyard2
/bin/rm /var/run/snort_{$snort_uuid}_{$if_real}.pid
- /bin/rm /var/run/snort_{$snort_uuid}_{$if_real}.pid.lck
/usr/local/bin/snort -u snort -g snort -R {$snort_uuid} -D -q -l /var/log/snort --pid-path /var/log/snort/run -G {$snort_uuid} -c /usr/local/etc/snort/snort_{$snort_uuid}_{$if_real}/snort.conf -i {$if_real}
$start_barnyard2
@@ -1296,7 +1295,6 @@ if [ \${pid_s} ] ; then
sleep 3
/bin/kill \${pid_b}
- /bin/rm /var/run/snort_{$snort_uuid}_{$if_real}.pid.lck
/bin/rm /var/run/snort_{$snort_uuid}_{$if_real}.pid
fi