SOURCES: dkfilter.init - now it's ready

grzegorz grzegorz at pld-linux.org
Wed Dec 6 09:36:26 CET 2006


Author: grzegorz                     Date: Wed Dec  6 08:36:26 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- now it's ready

---- Files affected:
SOURCES:
   dkfilter.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/dkfilter.init
diff -u SOURCES/dkfilter.init:1.1 SOURCES/dkfilter.init:1.2
--- SOURCES/dkfilter.init:1.1	Tue Dec  5 21:07:58 2006
+++ SOURCES/dkfilter.init	Wed Dec  6 09:36:20 2006
@@ -72,19 +72,27 @@
 	;;
   stop)
 	# Stop daemons.
-	if [ -f /var/lock/subsys/dkfilter ]; then
-		msg_stopping dkfilter
-		busy
-		MSG="`tu stop dkfilter 2>&1`"
-		if [ $? -eq 0 ]; then
-			ok
+	if [ $START_INBOUND = "yes" ]; then
+		if [ -f /var/lock/subsys/dkfilter.in ]; then
+			msg_stopping dkfilter.in
+			busy
+			start-stop-daemon --stop --quiet --pidfile /var/run/dkfilter.in.pid && ok || fail
+			rm -f /var/run/dkfilter.in.pid
+			rm -f /var/lock/subsys/dkfilter.in
 		else
-			fail
-			echo "$MSG"
+			msg_not_running dkfilter.in
+		fi
+	fi
+	if [ $START_OUTBOUND = "yes" ]; then
+		if [ -f /var/lock/subsys/dkfilter.out ]; then
+			msg_stopping dkfilter.out
+			busy
+			start-stop-daemon --stop --quiet --pidfile /var/run/dkfilter.out.pid && ok || fail
+			rm -f /var/run/dkfilter.out.pid
+			rm -f /var/lock/subsys/dkfilter.out
+		else
+			msg_not_running dkfilter.out
 		fi
-		rm -f /var/lock/subsys/dkfilter
-	else
-		msg_not_running dkfilter
 	fi
 	;;
   restart)
@@ -93,7 +101,8 @@
 	exit $?
 	;;
   status)
-	status master
+	status dkfilter.in
+	status dkfilter.out
 	exit $?
 	;;
   *)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/dkfilter.init?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list