From 0a744a91d045469839e80e566c5cfad4eebe01c7 Mon Sep 17 00:00:00 2001 From: robiscool Date: Tue, 16 Mar 2010 21:19:05 -0700 Subject: snort-dev, update snort.inc proc check --- config/snort-dev/snort.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc index 028d45cb..7008d9b0 100644 --- a/config/snort-dev/snort.inc +++ b/config/snort-dev/snort.inc @@ -52,11 +52,6 @@ function uniq_snort_proc($id, $if_real) $snort_uuid = $config['installedpackages']['snortglobal']['rule'][$id]['uuid']; $snort_up_ck = exec("/bin/ps -auwx | /usr/bin/grep -v grep | /usr/bin/grep snort | /usr/bin/awk '{print \$2;}' | sed 1q"); - if ($snort_up_ck == '') - { - $snort_up == 'false'; - } - if ($snort_up_ck == '') { $snort_up = 'false'; @@ -76,6 +71,8 @@ $snort_up_ck = exec("/bin/ps -auwx | /usr/bin/grep -v grep | /usr/bin/grep snort $snort_up = 'false'; } return $snort_up; + }else{ + return $snort_up; } } -- cgit v1.2.3