From: Zdeněk Salvet Date: Thu, 9 Dec 2004 15:41:45 +0000 (+0000) Subject: Proper stop and status notifications for glite-lb-notif-interlogd X-Git-Tag: glite-wms-utils-exception_R_1_0_0~6 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=415878abc52f21e622a797fe98fcdaef38277707;p=jra1mw.git Proper stop and status notifications for glite-lb-notif-interlogd --- diff --git a/org.glite.lb.server/config/startup b/org.glite.lb.server/config/startup index 87e7278..10b1a6d 100755 --- a/org.glite.lb.server/config/startup +++ b/org.glite.lb.server/config/startup @@ -53,7 +53,9 @@ start() stop() { + echo -n Stopping glite-lb-interlogd ... killall glite-lb-notif-interlogd + echo done if [ -f $pidfile ]; then pid=`cat $pidfile` kill $pid @@ -77,6 +79,13 @@ stop() status() { + 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 + fi + if [ -f $pidfile ]; then pid=`cat $pidfile` if ps p $pid >/dev/null 2>&1; then