]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Snort wird jetzt ordentlich beendet
authormaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 4 Jul 2007 19:15:35 +0000 (19:15 +0000)
committermaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 4 Jul 2007 19:15:35 +0000 (19:15 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@659 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

src/initscripts/init.d/snort

index b139a6c2e34bea3dda2d16ba5efa7d9871d20a96..134f22d289a83d63b90bedd77f80d58b08fbe6d9 100755 (executable)
@@ -69,6 +69,16 @@ case "$1" in
                ;;
                
        stop)
+            DEVICES=""
+            if [ -r /var/run/snort_$BLUE_DEV.pid ]; then
+                DEVICES+="$BLUE_DEV "
+       fi
+            if [ -r /var/run/snort_$GREEN_DEV.pid ]; then
+                DEVICES+="$GREEN_DEV "
+       fi
+            if [ -r /var/run/snort_$ORANGE_DEV.pid ]; then
+                DEVICES+="$ORANGE_DEV "
+       fi
                for DEVICE in $DEVICES; do
                        boot_mesg "Stopping Intrusion Detection System on $DEVICE..."
                        killproc -p /var/run/snort_$DEVICE.pid /var/run