Changd the guardian check.
authorChristian Schmidt <christian.schmidt@ipfire.org>
Tue, 22 Jun 2010 11:12:32 +0000 (13:12 +0200)
committerChristian Schmidt <christian.schmidt@ipfire.org>
Tue, 22 Jun 2010 11:12:32 +0000 (13:12 +0200)
src/initscripts/init.d/snort

index 87c034e..b157b80 100644 (file)
@@ -118,7 +118,7 @@ case "$1" in
               
               rm /var/run/snort_* >/dev/null 2>/dev/null
                 
-              if ([ -r /var/ipfire/guardian/enable ] || [ -n $(pidofproc /usr/local/bin/guardian.pl) ]); then
+              if ([ -r /var/ipfire/guardian/enable ] || [ ! -z $(pidofproc /usr/local/bin/guardian.pl) ]); then
                          boot_mesg "Stopping Guardian..."
                          killproc /usr/local/bin/guardian.pl
                          fi