[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4040 - trunk/OpenDNSSEC/tools

Sion Lloyd sion at nominet.org.uk
Fri Oct 1 11:47:43 CEST 2010


Author: sion
Date: 2010-10-01 11:47:43 +0200 (Fri, 01 Oct 2010)
New Revision: 4040

Modified:
   trunk/OpenDNSSEC/tools/ods-control.in
Log:
Timeout ods-control start if the enforcer does not write a pid-file. Pivotal story 5184282.


Modified: trunk/OpenDNSSEC/tools/ods-control.in
===================================================================
--- trunk/OpenDNSSEC/tools/ods-control.in	2010-10-01 09:43:39 UTC (rev 4039)
+++ trunk/OpenDNSSEC/tools/ods-control.in	2010-10-01 09:47:43 UTC (rev 4040)
@@ -62,8 +62,15 @@
 			"$sbindir/ods-enforcerd"
 			RETVAL=$?
 			if [ $RETVAL = 0 ]; then
+                i=0
 				while [ ! -r "$enforcer_pid_file" ]; do
 					sleep 1
+                    i=$(( $i + 1 ))
+                    if [ $i -ge 5 ]; then
+                        RETVAL=1
+                        echo "Could not start enforcer"
+                        break
+                    fi
 				done
 			fi
 		fi




More information about the Opendnssec-commits mailing list