'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
ESTS=99
fi
- if [ -f $RUNFILE ] ; then
- rm -f $RUNFILE
- fi
-
;;
'restart')
'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