From 0aaec495405571c163c3110e51dc2b4a26072675 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 2 Jan 2017 00:02:46 -0500 Subject: [PATCH] cleaning crons --- infobase/configuration/cron/doxygen.crontab | 6 +++--- .../configuration/cron/emit_crontab.crontab | 11 +++++++++++ .../cron/opensim_restart.crontab | 2 +- .../run_grid_container_non_work_hours.crontab | 2 +- .../cron/swim_downstream.crontab | 13 +++++++++++++ .../configuration/cron/swim_upstream.crontab | 19 ------------------- .../cron/tell_zooty_our_ip.crontab | 3 +-- 7 files changed, 30 insertions(+), 26 deletions(-) create mode 100644 infobase/configuration/cron/emit_crontab.crontab create mode 100644 infobase/configuration/cron/swim_downstream.crontab delete mode 100644 infobase/configuration/cron/swim_upstream.crontab diff --git a/infobase/configuration/cron/doxygen.crontab b/infobase/configuration/cron/doxygen.crontab index 48016ecc..5ec323f5 100644 --- a/infobase/configuration/cron/doxygen.crontab +++ b/infobase/configuration/cron/doxygen.crontab @@ -5,8 +5,8 @@ SHELL=/bin/bash USER=fred -# this is out of date! - #[doxygen] -20 4 * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd $HOME/hoople/docs; make) &>>/tmp/zz_doxy_make_$USER.log +# update the feisty meow documentation once on each of tuesday, thursday and saturday. +20 4 * * 2,4,6 (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd $HOME/feisty_meow/documentation; make) &>>/tmp/zz_doxy_make_$USER.log + diff --git a/infobase/configuration/cron/emit_crontab.crontab b/infobase/configuration/cron/emit_crontab.crontab new file mode 100644 index 00000000..731b9371 --- /dev/null +++ b/infobase/configuration/cron/emit_crontab.crontab @@ -0,0 +1,11 @@ + +SHELL=/bin/bash + +# m h dom mon dow command + +USER=fred + +#[crontab meta backup] +# meta-operation to back up the crontab using cron itself. +28 */8 * * * crontab -l >$HOME/$USER.crontab + diff --git a/infobase/configuration/cron/opensim_restart.crontab b/infobase/configuration/cron/opensim_restart.crontab index 22fbdfff..bb970ed1 100644 --- a/infobase/configuration/cron/opensim_restart.crontab +++ b/infobase/configuration/cron/opensim_restart.crontab @@ -6,7 +6,7 @@ SHELL=/bin/bash USER=fred #[opensim restart] -# make sure opensim is started if we can't detect it as running. +# ensure opensim is started if we can't detect it as running. */5 * * * * export FOOP=/tmp/opensim_restart_$USER.log; export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh &>>$FOOP ; bash $HOME/feisty_meow/scripts/opensim/maybe_restart_opensim.sh &>>$FOOP ; /bin/chmod g+w $FOOP diff --git a/infobase/configuration/cron/run_grid_container_non_work_hours.crontab b/infobase/configuration/cron/run_grid_container_non_work_hours.crontab index 3a008e00..fab62f8a 100644 --- a/infobase/configuration/cron/run_grid_container_non_work_hours.crontab +++ b/infobase/configuration/cron/run_grid_container_non_work_hours.crontab @@ -17,7 +17,7 @@ JAVA_HOME=/usr/lib/jvm/java-6-sun # 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. +# during non-weekday hours, ensure 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. diff --git a/infobase/configuration/cron/swim_downstream.crontab b/infobase/configuration/cron/swim_downstream.crontab new file mode 100644 index 00000000..a4ca4a14 --- /dev/null +++ b/infobase/configuration/cron/swim_downstream.crontab @@ -0,0 +1,13 @@ + + +SHELL=/bin/bash + +# m h dom mon dow command + +USER=fred + +#[swim downstream] +# updates local code repositories from master versions before uploading those changes to any downstream repositories, such as sourceforge or github. +14 */2 * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd $HOME ; rev_update ; make ) &>>/tmp/cron-swim_downstream-$USER.log + + diff --git a/infobase/configuration/cron/swim_upstream.crontab b/infobase/configuration/cron/swim_upstream.crontab deleted file mode 100644 index 79a2f3e8..00000000 --- a/infobase/configuration/cron/swim_upstream.crontab +++ /dev/null @@ -1,19 +0,0 @@ - - -SHELL=/bin/bash - -# m h dom mon dow command - -USER=fred - -#[swim upstream] -# this cron job updates the feisty meow repository on source forge based on -# the real one at feistymeow.org. -# update the source code to the latest, every day at 3am or so. - -# OUT OF DATE. # we just need to do a make nowadays! -#14 */2 * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/rev_control/push_repo_upstream.sh $HOME/repos/sf-feistymeow-trunk ) &>>/tmp/zz_nechung_fortune_$USER.log - -14 */2 * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd $HOME ; make ) &>>/tmp/cron-swim_upstream-$USER.log - - diff --git a/infobase/configuration/cron/tell_zooty_our_ip.crontab b/infobase/configuration/cron/tell_zooty_our_ip.crontab index bdf45d5e..ed9e934c 100644 --- a/infobase/configuration/cron/tell_zooty_our_ip.crontab +++ b/infobase/configuration/cron/tell_zooty_our_ip.crontab @@ -4,7 +4,6 @@ SHELL=/bin/bash # m h dom mon dow command #[tell zooty our ip address] -# special for firewall host; get zooty informed of our IP so we can make -# the back-connection and get home. +# firewall host only--inform serene/zooty of our home IP address to enable back-connections. 0,14,28,42,56 * * * * (bash /home/fred/feisty_meow/scripts/security/tell_zooty_our_ip.sh serene.feistymeow.org fred fred ) &>>/tmp/zooty_tell_report.txt -- 2.34.1