853569f
diff -up pdns-2.9.22-rc2/pdns/pdns.in.fixinit pdns-2.9.22-rc2/pdns/pdns.in
853569f
--- pdns-2.9.22-rc2/pdns/pdns.in.fixinit	2008-02-03 13:14:00.000000000 +0100
853569f
+++ pdns-2.9.22-rc2/pdns/pdns.in	2008-12-03 04:07:26.000000000 +0100
853569f
@@ -47,6 +47,7 @@ case "$1" in
473c30f
 		if test "$NOTRUNNING" = "0" 
473c30f
 		then 
473c30f
 			doPC quit
473c30f
+			rm -f /var/lock/subsys/pdns
473c30f
 			echo $ret
473c30f
 		else
473c30f
 			echo "not running"
853569f
@@ -57,6 +58,7 @@ case "$1" in
473c30f
 	force-stop)
473c30f
 		echo -n "Stopping PowerDNS authoritative nameserver: "
473c30f
 		killall -v -9 pdns_server
473c30f
+		rm -f /var/lock/subsys/pdns
473c30f
 		echo "killed"
473c30f
 	;;
473c30f
 
853569f
@@ -69,6 +71,7 @@ case "$1" in
473c30f
 			$pdns_server --daemon --guardian=yes
473c30f
 			if test "$?" = "0"
473c30f
 			then
473c30f
+				touch /var/lock/subsys/pdns
473c30f
 				echo "started"	
473c30f
 			fi
473c30f
 		fi