Because of bestgrid-02 is Debian box I had to modify startup file quite heavily. Modified lines are bolded:
stop and status options don't work. I will investigate this later.
#!/bin/sh
# pbs-telltail Starts/stops pbs-telltail daemon.
# Graham JenkinsNov. 2005. Modified: 20051220
#
# chkconfig: 2345 99 05
# description: pbs-telltail startup script
# Adjust as appropriate
REMOTES="ng2.auckland.ac.nz:2812"
[ -z "$PBS_HOME" ] && PBS_HOME=/opt/torque
[ -z "$TELLTAIL_HOME" ] && TELLTAIL_HOME=/usr/local/pbs-telltail
#. /etc/rc.d/init.d/functions
RETVAL=0
case "$1" in
start ) for Remote in $REMOTES ; do
Host=`echo $Remote | awk -F: '{print $1}'`
Port=`echo $Remote | awk -F: '{print $2}'`
echo -n "Starting pbs-telltail on host: $Host .. port: $Port .. "
$TELLTAIL_HOME/pbs-telltail $PBS_HOME/server_logs $Host $Port
RETVAL=$?; echo; [ $RETVAL -ne 0 ] && break
done
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/pbs-telltail ;;
stop ) echo -n "Shutting down pbs-telltail .. "
killproc pbs-telltail
RETVAL=$?; echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/pbs-telltail ;;
status) status pbs-telltail
RETVAL=$? ;;
* ) echo "Usage: $0 {start|stop|status}"; exit 1 ;;
esac
exit $RETVAL
I copied /usr/local/pbs-telltail/* from ng2 to bestgrid-02.
Copied pbs-telltail.RH to /etc/init.d/pbs-telltail
And modified as mentioned above. Than started this script.
Before a pbs job had stuck and displayed a message "Job Unsubmitted". After it goes further and display env variables as that specified in test2.rsl file (job description).
No comments:
Post a Comment