--- projects/cms/source/host/ihost-perl/ihostchk.sh 2001/03/12 23:51:15 1.2 +++ projects/cms/source/host/ihost-perl/ihostchk.sh 2001/11/21 10:08:20 1.4 @@ -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.2 2001/03/12 23:51:15 tdb Exp $ +# $Id: ihostchk.sh,v 1.4 2001/11/21 10:08:20 tdb Exp $ # # CHANGE this to the directory of the ihost.pl script @@ -20,7 +20,9 @@ fmhost="raptor.ukc.ac.uk" fmport="4567" # CHANGE this to point to the PID file -pidfile="/var/tmp/ihost.pid" +#piddir=${HOME:-/var/tmp} +piddir="/var/tmp" +pidfile="$piddir/.ihost.pid" ###### You probably don't need to change anything below here ######