#!/bin/sh
#
# Copyright (c) 2001, PerfCap Corporation, Nashua NH
# All Rights Reserved
#
# Sun Kit Install: Preremove script () if running stop collector
#---------------------------------------------------------------

 IMAGE=$PERFCAP_ROOT/bin/ecap_monitor

 RUN_IMAGE="`ps -e | grep ecap_mon`"
 if [ -n "${RUN_IMAGE}" ]
 then
       echo "ecap_monitor running. Executing stop command..."
       $IMAGE -stop
       sleep 1
 fi
 exit 0
