INN commit: trunk/scripts (innwatch.in)

INN Commit rra at isc.org
Fri Oct 3 16:27:34 UTC 2014


    Date: Friday, October 3, 2014 @ 09:27:33
  Author: iulius
Revision: 9729

innwatch:  report an error when the control file is missing

Modified:
  trunk/scripts/innwatch.in

-------------+
 innwatch.in |    6 ++++++
 1 file changed, 6 insertions(+)

Modified: innwatch.in
===================================================================
--- innwatch.in	2014-09-24 18:07:27 UTC (rev 9728)
+++ innwatch.in	2014-10-03 16:27:33 UTC (rev 9729)
@@ -88,6 +88,12 @@
     exit 1
 fi
 
+##  Check the existence of the control file.
+if [ ! -f "${CTLWATCH}" ] ; then
+    echo "Control file ${CTLWATCH} not found!" 1>&2
+    exit 1
+fi
+
 trap '' 2
 
 ##  Anyone else there?



More information about the inn-committers mailing list