git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62b5e33
)
Proper stop and status notifications for glite-lb-notif-interlogd
author
Zdeněk Salvet
<salvet@ics.muni.cz>
Thu, 9 Dec 2004 15:41:45 +0000
(15:41 +0000)
committer
Zdeněk Salvet
<salvet@ics.muni.cz>
Thu, 9 Dec 2004 15:41:45 +0000
(15:41 +0000)
org.glite.lb.server/config/startup
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/config/startup
b/org.glite.lb.server/config/startup
index
87e7278
..
10b1a6d
100755
(executable)
--- 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