Hi,

I have a patch that add exit codes to the init-script status and start commands. This helps stuff like puppet to manage the service.

Index: pdns/pdns.in
===================================================================
--- pdns/pdns.in    (revision 2725)
+++ pdns/pdns.in    (working copy)
@@ -54,6 +54,7 @@
             echo $ret
         else
             echo "not running"
+            exit 3
         fi
     ;;

@@ -84,6 +85,9 @@
             if $pdns_server --daemon --guardian=yes
             then
                 echo "started"
+            else
+                echo "starting failed"
+                exit 1
             fi
         fi
     ;;

_______________________________________________
Pdns-dev mailing list
Pdns-dev@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-dev

Reply via email to