From 415878abc52f21e622a797fe98fcdaef38277707 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Thu, 9 Dec 2004 15:41:45 +0000 Subject: [PATCH] Proper stop and status notifications for glite-lb-notif-interlogd --- org.glite.lb.server/config/startup | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 1.8.2.3