From 5150a9c61abf197cf1dcda839fbb293d70ff201a Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 16 Apr 2012 15:37:42 -0400 Subject: [PATCH] new cron job to start grid container only when it is not normal working hours, since other folks' jobs can really mess up desktop performance. --- .../run_grid_container_non_work_hours.crontab | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 database/configuration/cron/run_grid_container_non_work_hours.crontab diff --git a/database/configuration/cron/run_grid_container_non_work_hours.crontab b/database/configuration/cron/run_grid_container_non_work_hours.crontab new file mode 100644 index 00000000..55e0bf13 --- /dev/null +++ b/database/configuration/cron/run_grid_container_non_work_hours.crontab @@ -0,0 +1,19 @@ + +# m h dom mon dow command + +SHELL=/bin/bash + +USER=jurgis +XSEDE_TESTS_FOLDER=/home/jurgis/xsede/xsede_tests + +# 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 + +# 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 + -- 2.34.1