From: Zdeněk Salvet Date: Mon, 20 Feb 2006 09:24:14 +0000 (+0000) Subject: Always check both daemons in status(). X-Git-Tag: glite-lb-server_R_1_3_6~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=a609ea0b28bc3fe9cad4a122a03eaa78c91a3ce3;p=jra1mw.git Always check both daemons in status(). --- diff --git a/org.glite.lb.server/config/startup b/org.glite.lb.server/config/startup index 61e9604..5122b2b 100755 --- a/org.glite.lb.server/config/startup +++ b/org.glite.lb.server/config/startup @@ -79,23 +79,29 @@ stop() status() { + retval=0 + if netstat -an --unix | grep "^unix .* LISTEN.* /tmp/glite-lb-notif.sock$" >/dev/null 2>&1 ;then echo glite-lb-notif-interlogd running else echo glite-lb-notif-interlogd not running - return 1 + retval=1 fi if [ -f $pidfile ]; then pid=`cat $pidfile` if ps p $pid >/dev/null 2>&1; then echo glite-lb-bkserverd running as $pid - return 0 + else + echo glite-lb-bkserverd not running + retval=1 fi + else + echo glite-lb-bkserverd not running + retval=1 fi - echo glite-lb-bkserverd not running - return 1 + return $retval } case x$1 in