From 8df08e663231cb198b6c912a9cb03fd421a5f0db Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 14 Nov 2005 13:37:31 +0000 Subject: [PATCH] Bugfixing --- smc.agent | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/smc.agent b/smc.agent index 2d6e86f..2e55e39 100755 --- a/smc.agent +++ b/smc.agent @@ -85,6 +85,10 @@ case "$1" in 'stop') + if [ -f $RUNFILE ] ; then + rm -f $RUNFILE + fi + if [ -f $sunmc_basedir/SUNWsymon/sbin/es-stop ] ; then echo "Stopping Sun Management Center Agent Layer" $sunmc_basedir/SUNWsymon/sbin/es-stop -alY @@ -94,10 +98,6 @@ case "$1" in ESTS=99 fi - if [ -f $RUNFILE ] ; then - rm -f $RUNFILE - fi - ;; 'restart') @@ -114,7 +114,7 @@ case "$1" in 'status') - /usr/bin/ps -ef | grep "esd - init agent" >/dev/null + /usr/bin/ps -ef | grep "esd - init agent" | grep -v grep >/dev/null if [ $? -eq 0 ] ; then echo "Sun Management Center Agent Layer is running" ESTS=0 -- 2.39.5