#!/bin/bash
# 
# $Header: /usr/local/sbin/RCS/nimstart,v 1.1 2002/03/21 19:39:27 samuel Exp samuel $
#
# $Log: nimstart,v $
# Revision 1.1  2002/03/21 19:38:24  samuel
# Initial revision
#
#
# Copyright 2002 Stephen Samuel.
# May be copied under the terms of the Gnu Public License
# 
#
# This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License
#
# You should have received a copy of the GNU Library General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# or check at www.gnu.org.
#
# chkconfig: 345 96 02
# description: nimhunt startup script.
# 

if ps auxw | grep .nimhunt | grep --quiet -v grep
then
	echo numhunt already running.
	exit 1
else

	echo starting nimhunt.
	nohup /usr/local/sbin/nimhunt  2>&1 | Mail -s "nimhunt run" samuel &

fi
