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