# preremove script for DCG/x installation
# copyright Data Connection Ltd. 1997
#
XDCS=`/usr/bin/ps -e | grep xdc_s`
if [ -n "$XDCS" ]
then
  echo "Sunforum still running - please stop before removal"
  exit 1
fi
#
# kill off gccd if still running
#
DCT120=`/usr/bin/ps -e | grep gccd`
if [ -n "$DCT120" ]
then
  /usr/bin/ps -e | awk '/gccd/ {print $1}' | xargs kill -9
fi
#
# kill off mcsd if still running
#
DCT120=`/usr/bin/ps -e | grep mcsd`
if [ -n "$DCT120" ]
then
  /usr/bin/ps -e | awk '/mcsd/ {print $1}' | xargs kill -9
fi
# remove any core files on our way out (of course there shouldn't be any!)
rm -f $BASEDIR/SUNWdat/core
