48700573e0b7396ef4c266ef080da3d7eaa8ff78
[feisty_meow.git] / database / configuration / cron / run_grid_container_non_work_hours.crontab
1
2 # m h dom mon dow command
3
4 SHELL=/bin/bash
5
6 USER=jurgis
7
8 # we need these for the XSEDE and GenesisII environment.
9 GENII_INSTALL_DIR=/home/jurgis/xsede/code/GenesisII/trunk
10 XSEDE_TESTS_FOLDER=$GENII_INSTALL_DIR/xsede_tools
11 GENII_USER_DIR=/home/jurgis/.tmp/dot-genesis-xcg3
12 JAVA_HOME=/usr/lib/jvm/java-6-sun
13
14 ##############
15
16 # variegated scheme: we run the container during non-working hours.
17
18 # during non-weekday hours, make sure grid container is started if can't detect it as running.
19   # first is for weekdays, during non-working hours.
20 #*/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
21   # second is for weekends.
22 #*/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
23
24 # stop the container during working hours, so it doesn't hose up our desktop performance.
25 #*/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
26
27 ##############
28
29 # a fairly rude scheme; always stop the container.
30
31 #*/5 * * * * export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; bash $XSEDE_TESTS_FOLDER/library/zap_genesis_javas.sh &>>$FOOP ; /bin/chmod g+w $FOOP
32
33 ##############
34
35 #current scheme, always run it.
36 */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
37
38 ##############
39