Start notif-il only if it is there, print warning otherwise
authorAleš Křenek <ljocha@ics.muni.cz>
Sat, 8 Sep 2007 16:27:58 +0000 (16:27 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Sat, 8 Sep 2007 16:27:58 +0000 (16:27 +0000)
org.glite.lb.server/config/startup

index 8aae539..4ab7f4e 100755 (executable)
@@ -66,10 +66,14 @@ start()
                $super $creds -i $pidfile $port $wport $dumpdir $purgedir $maildir" \
        && echo " done" || echo " FAILED"
 
-       echo -n Starting glite-lb-notif-interlogd ...
-       su - $GLITE_USER -c "$GLITE_LOCATION/bin/glite-lb-notif-interlogd \
-               -f $GLITE_LB_NOTIF_FPREFIX -s $GLITE_LB_NOTIF_SOCK \
-               $creds" && echo " done" || echo " FAILED"
+       if test -x $GLITE_LOCATION/bin/glite-lb-notif-interlogd; then
+               echo -n Starting glite-lb-notif-interlogd ...
+               su - $GLITE_USER -c "$GLITE_LOCATION/bin/glite-lb-notif-interlogd \
+                       -f $GLITE_LB_NOTIF_FPREFIX -s $GLITE_LB_NOTIF_SOCK \
+                       $creds" && echo " done" || echo " FAILED"
+       else
+               echo Warning: glite-lb-notif-interlogd not installed, LB notifications will not work
+       fi
 }
 
 stop()