new cron job to start grid container only when it is not normal working hours,
authorChris Koeritz <fred@gruntose.com>
Mon, 16 Apr 2012 19:37:42 +0000 (15:37 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 16 Apr 2012 19:37:42 +0000 (15:37 -0400)
since other folks' jobs can really mess up desktop performance.

database/configuration/cron/run_grid_container_non_work_hours.crontab [new file with mode: 0644]

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 (file)
index 0000000..55e0bf1
--- /dev/null
@@ -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
+