cleaning crons
[feisty_meow.git] / infobase / 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 #[run grid container non-work-hours]
9
10 # we need these for the GenesisII GFFS environment.
11 GENII_INSTALL_DIR=/home/jurgis/gffs/code/GenesisII/trunk
12 XSEDE_TESTS_FOLDER=$GENII_INSTALL_DIR/toolkit
13 GENII_USER_DIR=/home/jurgis/.tmp/dot-genesis-xcg3
14 JAVA_HOME=/usr/lib/jvm/java-6-sun
15
16 ##############
17
18 # variegated scheme: we run the container during non-working hours.
19
20 # during non-weekday hours, ensure grid container is started if can't detect it as running.
21   # first is for weekdays, during non-working hours.
22 #*/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
23   # second is for weekends.
24 #*/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
25
26 # stop the container during working hours, so it doesn't hose up our desktop performance.
27 #*/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
28
29 ##############
30
31 # a fairly rude scheme; always stop the container.
32
33 #*/5 * * * * export FOOP=/tmp/container_restarter_${USER}_$(hostname).log; bash $XSEDE_TESTS_FOLDER/library/zap_genesis_javas.sh &>>$FOOP ; /bin/chmod g+w $FOOP
34
35 ##############
36
37 #current scheme, always run it.
38 */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
39
40 ##############
41