]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
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 87c034ead0d0eb87e6aec8b0e0fc0187e3feda57..b157b802cdbff234f8a4cccd29fd2460270aa6cb 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