Fixed yaim script (proper return code).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 1 Apr 2012 13:41:28 +0000 (13:41 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 1 Apr 2012 13:41:28 +0000 (13:41 +0000)
org.glite.lb.yaim/config/functions/config_glite_lb.in

index 487276d..b25ef36 100644 (file)
@@ -350,17 +350,17 @@ EOF
   fi
 
   ${GLITE_LB_LOCATION_ETC}/init.d/glite-lb-bkserverd restart
+  if [ ! $? = 0 ] ; then
+    yaimlog ABORT "Service glite-lb-bkserverd failed to start!"
+    return 1
+  fi
+
   if [ x"$GLITE_LB_RTM_ENABLED" = x"true" ]; then
     ${GLITE_LB_LOCATION_ETC}/init.d/glite-lb-harvester restart
   else
     ${GLITE_LB_LOCATION_ETC}/init.d/glite-lb-harvester stop
   fi
 
-  if [ ! $? = 0 ] ; then
-    yaimlog ABORT "Service glite-lb-bkserverd failed to start!"
-    return 1
-  fi
-
   return 0
 
 }