SOURCES: dhcdbd.init - always remove lockfile. otherwise it's impossible to...

glen glen at pld-linux.org
Fri Jul 25 14:28:38 CEST 2008


Author: glen                         Date: Fri Jul 25 12:28:38 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- always remove lockfile. otherwise it's impossible to start daemon if stop fails when daemon had died somewhy earlier (wtf\!?)

---- Files affected:
SOURCES:
   dhcdbd.init (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/dhcdbd.init
diff -u SOURCES/dhcdbd.init:1.6 SOURCES/dhcdbd.init:1.7
--- SOURCES/dhcdbd.init:1.6	Sun Apr 27 03:42:13 2008
+++ SOURCES/dhcdbd.init	Fri Jul 25 14:28:32 2008
@@ -67,9 +67,11 @@
 				/com/redhat/dhcp \
 				com.redhat.dhcp.quit >/dev/null 2>&1
 			if [ $? -eq 0 ]; then
-				rm -f /var/lock/subsys/dhcdbd /var/run/dhcdbd.pid >/dev/null 2>&1
+				ok
+			else
+				fail
 			fi
-			ok
+			rm -f /var/lock/subsys/dhcdbd /var/run/dhcdbd.pid >/dev/null 2>&1
 		else
 			msg_not_running dhcdbd
 		fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/dhcdbd.init?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list