[Fai-commit] r4611 - trunk/lib

lange at alioth.debian.org lange at alioth.debian.org
Tue Oct 9 14:50:22 UTC 2007


Author: lange
Date: 2007-10-09 14:50:22 +0000 (Tue, 09 Oct 2007)
New Revision: 4611

Modified:
   trunk/lib/subroutines-linux
Log:
add check if $monserver is defined


Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2007-10-09 13:18:01 UTC (rev 4610)
+++ trunk/lib/subroutines-linux	2007-10-09 14:50:22 UTC (rev 4611)
@@ -83,6 +83,10 @@
 
     # check if monitor server is available
     [ -z "$monserver" ] && monserver=$SERVER
+    if [ -z "$monserver" ]; then
+	echo "No monitor daemon defined."
+	return
+    fi
     faimond=1
     sendhostname=$HOSTNAME # save current hostname
     if sendmon check; then




More information about the Fai-commit mailing list