]> git.pld-linux.org Git - packages/p0f.git/commitdiff
- kill pidfile stuff as nothing is backgrounded and therefore pidfile is always empty
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 15 Jan 2006 22:22:29 +0000 (22:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    p0f.init -> 1.12

p0f.init

index 97ba4408759ce18b40c1d1262c97663b12f9e668..2b74e6c2e670454ecb6a34463c5efad4da766841 100644 (file)
--- a/p0f.init
+++ b/p0f.init
@@ -58,10 +58,8 @@ case "$1" in
                # Start up p0f and filter out all packets originating from any of this machines IP's.
                /usr/sbin/p0f "$RULE" $OPTIONS $P0F_OPTIONS -d -o /var/log/p0f 2>/dev/null
                RETVAL=$?
-               CPID=$!
                if [ $RETVAL -eq 0 ]; then
                        touch /var/lock/subsys/p0f
-                       echo $CPID >/var/run/p0f.pid
                        ok;
                else
                        fail;
@@ -74,7 +72,7 @@ case "$1" in
        if [ -f /var/lock/subsys/p0f ]; then
                msg_stopping "p0f"
                killproc p0f
-               rm -f /var/lock/subsys/p0f /var/run/p0f.pid >/dev/null 2>&1
+               rm -f /var/lock/subsys/p0f >/dev/null 2>&1
        else
                msg_not_running "p0f"
        fi
This page took 0.146977 seconds and 4 git commands to generate.