PID=`ps -ef | grep netscape | grep -v grep | awk '{print $2}' `
NETSCAPE=/opt/netscape/netscape
LOCKFILE=/.netscape/lock
CONTACT="youremaill address here"
if [ ! -a $PID ];then
echo "Netscape Server is running with Process ID $PID"
else
echo "Netscape Server is down and will be restarted shortly"
mailx -s "Netscape Server is down and will be restarted shortly"
$CONTACT < /dev/null > /dev/null 2>&1
rm -f $LOCKFILE
exec $NETSCAPE &
echo "Netscape has been restarted"
fi