[Pdns-dev] init script return codes
Sander Hoentjen
sander at hoentjen.eu
Tue Oct 2 15:16:19 CEST 2012
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
;;
More information about the Pdns-dev
mailing list