]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/snort
Fixed Guardian deactivate bug #0000664
[people/pmueller/ipfire-2.x.git] / 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