Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/bash## Wrapper script to start and restart the build tool# This script should be spawned by the init.d system## Killing abtD.jar will not stop the build system# as this script will respawn it## Best to kill the process group of this shell script#while true; do## Rotate logfiles for monitoring each session#LOGFILE=/tmp/buildtoolif [ -f $LOGFILE ] ; thenfor ii in 9 8 7 6 5 4 3 2 ; dolast=$( expr $ii - 1 )[ -f $LOGFILE.$ii ] && rm $LOGFILE.$ii[ -f $LOGFILE.$last ] && mv $LOGFILE.$last $LOGFILE.$iidonemv $LOGFILE $LOGFILE.1fiexec 2>$LOGFILE 1>&2## Launch the build tool#. /etc/profileunset GBE_PLATFORMecho $(date) Starting abtlaunch#jats vars -vjats -NoExportVars eprog /work/buildtool/abtlaunchecho $(date) abtlaunch stoppedsleep 30done