- When quering status of running SEMS via init-script, we must check

status of a particular SEMS, specified via pid-file, instead of
  repording about some stranger SEMS running somewhere by someone.

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1594 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Peter Lemenkov 17 years ago
parent 549c86ee46
commit 2456ccb393

@ -34,7 +34,7 @@ start() {
stop() {
echo -n $"Stopping $prog: "
killproc $sems 2> /dev/null
killproc -p $pidfile 2> /dev/null
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f $lockfile $pidfile
@ -55,7 +55,7 @@ case "$1" in
stop
;;
status)
status $sems
status -p $pidfile $prog
RETVAL=$?
;;
restart)

Loading…
Cancel
Save