X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=database%2Fconfiguration%2Fcron%2Frun_grid_container_non_work_hours.crontab;h=b7fc5aebc496cad3f988087fbfb1f0a43f2997cb;hb=8bc215589e5c27812b9b3842b9051abbfa2b920f;hp=55e0bf13f984c94382d21dda6d1424cea8700cb2;hpb=5150a9c61abf197cf1dcda839fbb293d70ff201a;p=feisty_meow.git diff --git a/database/configuration/cron/run_grid_container_non_work_hours.crontab b/database/configuration/cron/run_grid_container_non_work_hours.crontab index 55e0bf13..b7fc5aeb 100644 --- a/database/configuration/cron/run_grid_container_non_work_hours.crontab +++ b/database/configuration/cron/run_grid_container_non_work_hours.crontab @@ -4,16 +4,36 @@ SHELL=/bin/bash USER=jurgis + +# we need these for the XSEDE and GenesisII environment. XSEDE_TESTS_FOLDER=/home/jurgis/xsede/xsede_tests +GENII_INSTALL_DIR=/home/jurgis/xsede/code/GenesisII/trunk +GENII_USER_DIR=/home/jurgis/.tmp/dot-genesis-xcg3 +JAVA_HOME=/usr/lib/jvm/java-6-sun -# during non-weekday hours, make sure grid container is started if can't detect it as running. +############## - # first is for weekdays, during non-working hours. -*/10 0-8,19-23 * * 1-5 export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; bash $XSEDE_TESTS_FOLDER/library/maybe_restart_container.sh &>>$FOOP ; /bin/chmod g+w $FOOP +# variegated scheme: we run the container during non-working hours. +# during non-weekday hours, make sure grid container is started if can't detect it as running. + # first is for weekdays, during non-working hours. +#*/10 0-8,19-23 * * 1-5 export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; bash $XSEDE_TESTS_FOLDER/library/maybe_restart_container.sh &>>$FOOP ; /bin/chmod g+w $FOOP # second is for weekends. -*/10 * * * 0,6 export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; bash $XSEDE_TESTS_FOLDER/library/maybe_restart_container.sh &>>$FOOP ; /bin/chmod g+w $FOOP +#*/10 * * * 0,6 export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; bash $XSEDE_TESTS_FOLDER/library/maybe_restart_container.sh &>>$FOOP ; /bin/chmod g+w $FOOP # stop the container during working hours, so it doesn't hose up our desktop performance. -*/10 9-18 * * 1-5 export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; bash $XSEDE_TESTS_FOLDER/library/zap_genesis_javas.sh &>>$FOOP ; /bin/chmod g+w $FOOP +#*/10 9-18 * * 1-5 export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; bash $XSEDE_TESTS_FOLDER/library/zap_genesis_javas.sh &>>$FOOP ; /bin/chmod g+w $FOOP + +############## + +# a fairly rude scheme; always stop the container. + +#*/5 * * * * export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; bash $XSEDE_TESTS_FOLDER/library/zap_genesis_javas.sh &>>$FOOP ; /bin/chmod g+w $FOOP + +############## + +#current scheme, always run it. +*/5 * * * * export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; set &>$FOOP ; bash $XSEDE_TESTS_FOLDER/library/maybe_restart_container.sh &>>$FOOP ; /bin/chmod g+w $FOOP + +##############