Fixed Guardian deactivate bug #0000664
authorChristian Schmidt <christian.schmidt@ipfire.org>
Mon, 21 Jun 2010 17:03:10 +0000 (19:03 +0200)
committerChristian Schmidt <christian.schmidt@ipfire.org>
Mon, 21 Jun 2010 17:03:10 +0000 (19:03 +0200)
src/initscripts/init.d/snort

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