![]() ![]() |
![]() |
File: [Development] / JSOC / proj / workflow / gatekeeper.restart
(download)
Revision: 1.6, Tue May 14 18:46:30 2013 UTC (10 years ago) by jeneen Branch: MAIN CVS Tags: Ver_8-4, Ver_8-3, Ver_8-2, Ver_8-1 Changes since 1.5: +4 -4 lines updating so pipeline will run from Development |
#! /bin/csh -f source $HOME/.cshrc source $HOME/.login setenv WORKFLOW_DATA /home/jsoc/pipeline #setenv WORKFLOW_ROOT /home/phil/jsoc/proj/workflow setenv WORKFLOW_ROOT /home/jsoc/cvs/Development/JSOC/proj/workflow cd $WORKFLOW_DATA # restart gatekeeper and put log in pipeline directory. echo " " echo -n Restart gatekeeper at " " date echo -n "On " hostname rm -f Keep_running set loopcount=0 echo -n Waiting while (-e GATEKEEPERBUSY) sleep 1 echo -n '.' @ loopcount = $loopcount + 1 if ($loopcount > 120) then echo Givup waiting after 2 minutes rm -f GATEKEEPERBUSY endif end echo " " # allow extra time to simulate normal gatekeeper sleep. sleep 10 echo -n "Gatekeeper PID = " gatekeeper.csh >& log & set gatekeeper_status = $status if ($gatekeeper_status || -e GATEKEEPERBUSY) then echo -n "XXX gatekeeper failed at " date echo "XXX Status was $gatekeeper_status" rm -f GATEKEEPERBUSY rm -f Keep_running echo "XXX force restart" # /home/phil/jsoc/proj/workflow/gatekeeper.restart >> /home/jsoc/pipeline/restart.log & /home/jsoc/cvs/Development/JSOC/proj/workflow/gatekeeper.restart >> /home/jsoc/pipeline/restart.log & else echo -n Gatekeeper stopped by operator at " " date endif
Karen Tian |
Powered by ViewCVS 0.9.4 |