Thanks for your reply,
This is my crontab:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/ircadmin/services/services.chk >/dev/null 2>&1
And this is services.chk:
#!/bin/sh
# Crontab script for Anope
#
# To know how to install the crontab, read the INSTALL file.
###############################################################
# CONFIGURATION
###############################################################
# Anope binary directory
ANOPATH=/home/ircadmin/services/
# Name of the pid file
ANOPIDF=services.pid
# Name of the executable
ANOPROG=services
# Parameters to pass to the executable
ANOARGS=""
#ANOARGS="-debug"
###############################################################
# DON'T EDIT ANYTHING BELOW #
###############################################################
PATH=/bin:/usr/bin:/usr/local/bin
ANOPID=
cd $ANOPATH
if [ -f $ANOPIDF ]
then
ANOPID=`cat $ANOPIDF`
if [ `ps auwx | grep $ANOPROG | grep $ANOPID | grep -v -c grep` = 1 ]
then
exit
fi
rm -f $ANOPIDF
fi
./$ANOPROG $ANOARGS
I have it set up to run under it's own user: ircadmin
If you see anything incorrect, I'd appreciate it if would point it to me. I'm quite a novice at this.
Thanks again,
Johnny