--- projects/cms/source/host/ihost-perl/ihostchk.sh 2001/03/12 23:23:04 1.1 +++ projects/cms/source/host/ihost-perl/ihostchk.sh 2001/11/20 13:05:08 1.3 @@ -9,7 +9,7 @@ # NOTE: e-mails should only be sent if an error occurs, so the former is # the best choice for a cronjob. # -# $Id: ihostchk.sh,v 1.1 2001/03/12 23:23:04 tdb Exp $ +# $Id: ihostchk.sh,v 1.3 2001/11/20 13:05:08 tdb Exp $ # # CHANGE this to the directory of the ihost.pl script @@ -19,10 +19,12 @@ ihostdir="/home/cut/tdb1/cvs/source/host/ihost" fmhost="raptor.ukc.ac.uk" fmport="4567" +# CHANGE this to point to the PID file +piddir=${HOME:-/var/tmp} +pidfile="$piddir/.ihost.pid" ###### You probably don't need to change anything below here ###### -pidfile="ihost.pid" ihost="ihost.pl" cd $ihostdir