#!/bin/ksh

if [ -f /etc/opt/SUNWisp/ixsnagbls ]; then
	. /etc/opt/SUNWisp/ixsnagbls
else
# Second tier case where SUNWixtnm is not needed and the admin servers need
# not run.	
	return 0
fi

if [ -f  /etc/opt/SUNWisp/globals ]; then
	. /etc/opt/SUNWisp/globals	
else
# Second tier case where SUNWixtnm is not needed and the admin servers need
# not run.	
	return 0
fi

StopNewsadServ ()
{
  if [ -f ${NEWSADSERV_PID_FILE} ]; then
	NEWSADSERV_PID=`cat ${NEWSADSERV_PID_FILE}`
	${KILL} ${NEWSADSERV_PID} 2> /dev/null
  fi
}

Main ()
{
  StopNewsadServ
  CleanUp ${NEWSADSERV_PID_FILE}
}

Main $*
