SOURCES: p0f.init - kill pidfile stuff as nothing is backgrounded ...

glen glen at pld-linux.org
Sun Jan 15 23:22:34 CET 2006


Author: glen                         Date: Sun Jan 15 22:22:34 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- kill pidfile stuff as nothing is backgrounded and therefore pidfile is always empty

---- Files affected:
SOURCES:
   p0f.init (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SOURCES/p0f.init
diff -u SOURCES/p0f.init:1.11 SOURCES/p0f.init:1.12
--- SOURCES/p0f.init:1.11	Sun Jan 15 17:47:43 2006
+++ SOURCES/p0f.init	Sun Jan 15 23:22:29 2006
@@ -58,10 +58,8 @@
 		# 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 @@
 	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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/p0f.init?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list