--- 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/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.2 2001/03/12 23:51:15 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 @@ -20,7 +20,8 @@ fmhost="raptor.ukc.ac.uk" fmport="4567" # CHANGE this to point to the PID file -pidfile="/var/tmp/ihost.pid" +piddir=${HOME:-/var/tmp} +pidfile="$piddir/.ihost.pid" ###### You probably don't need to change anything below here ######