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