473c30
--- pdns-2.9.20/pdns/pdns.in.fixinit	2006-12-17 18:14:14.000000000 +0100
473c30
+++ pdns-2.9.20/pdns/pdns.in	2006-12-17 18:15:42.000000000 +0100
473c30
@@ -47,6 +47,7 @@
473c30
 		if test "$NOTRUNNING" = "0" 
473c30
 		then 
473c30
 			doPC quit
473c30
+			rm -f /var/lock/subsys/pdns
473c30
 			echo $ret
473c30
 		else
473c30
 			echo "not running"
473c30
@@ -57,6 +58,7 @@
473c30
 	force-stop)
473c30
 		echo -n "Stopping PowerDNS authoritative nameserver: "
473c30
 		killall -v -9 pdns_server
473c30
+		rm -f /var/lock/subsys/pdns
473c30
 		echo "killed"
473c30
 	;;
473c30
 
473c30
@@ -69,6 +71,7 @@
473c30
 			$pdns_server --daemon --guardian=yes
473c30
 			if test "$?" = "0"
473c30
 			then
473c30
+				touch /var/lock/subsys/pdns
473c30
 				echo "started"	
473c30
 			fi
473c30
 		fi