snarufu
authorChris Koeritz <fred@gruntose.com>
Thu, 12 Oct 2017 16:29:16 +0000 (12:29 -0400)
committerChris Koeritz <fred@gruntose.com>
Thu, 12 Oct 2017 16:29:16 +0000 (12:29 -0400)
19 files changed:
infobase/configuration/cron/aa_cron_defaults.crontab
infobase/configuration/cron/backup_maildir.crontab
infobase/configuration/cron/backup_mailman.crontab
infobase/configuration/cron/backup_mysql_databases.crontab
infobase/configuration/cron/backup_photo_albums.crontab
infobase/configuration/cron/backup_serene_system.crontab
infobase/configuration/cron/backup_trac.crontab
infobase/configuration/cron/bookmarks_builder.crontab
infobase/configuration/cron/doxygen.crontab
infobase/configuration/cron/nechung_fortune.crontab
infobase/configuration/cron/opensim_restart.crontab
infobase/configuration/cron/pack_feisty_for_web.crontab
infobase/configuration/cron/process_check.crontab
infobase/configuration/cron/random_sound.crontab
infobase/configuration/cron/snarf_linux_configuration.crontab
infobase/configuration/cron/synch_and_swim_downstream.crontab
infobase/configuration/cron/tell_zooty_our_ip.crontab
infobase/configuration/cron/update_apt_based_linux.crontab
infobase/configuration/cron/uptime_report.crontab

index e076698b66515f44821694565533547ec90b3534..375d1d388bab757c548423abfb7a2c7303993cd9 100644 (file)
@@ -19,6 +19,12 @@ CRONUSER=FILL_CRONUSER_HERE
 # set the shell to bash.  (not the default for some cron implementations.)
 SHELL=/bin/bash
 
+# set the top-level folder for feisty meow here, since cron gets almost
+# nothing from the user's environment.  this folder needs to be updated for
+# your own particular install location.
+#FEISTY_MEOW_APEX=$HOME/feisty_meow
+FEISTY_MEOW_APEX=/usr/local/fred/feisty_meow
+
 # crontab miniature docs:
 #
 # below is the short form key to the crontab positional entries for times:
@@ -61,6 +67,6 @@ SHELL=/bin/bash
 # runs every minute and recreates a fortune for thunderbird signature.
 # a lot of the detail below is to get the feisty meow environment loaded for
 # the new_sig command.
-* * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; perl $FEISTY_MEOW_SCRIPTS/text/new_sig.pl) &>>/tmp/${CRONUSER}-cron-nechung_fortune.log
+* * * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; perl $FEISTY_MEOW_SCRIPTS/text/new_sig.pl) &>>/tmp/${CRONUSER}-cron-nechung_fortune.log
 
 
index 752f6e021b80b1b207bc503f8799035c1b316d2f..5e9e501d10052579902be967812cde07fa2eac1a 100644 (file)
@@ -1,5 +1,5 @@
 
 #[backup maildir]
 # backs up the maildir folder for fred bi-monthly.
-8 4 3,14 * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; tar -czf /z/stuffing/archives/maildir_backup_$(date_stringer).tar.gz $HOME/Maildir) &>/tmp/${CRONUSER}-cron-backup_maildir.log
+8 4 3,14 * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; tar -czf /z/stuffing/archives/maildir_backup_$(date_stringer).tar.gz $HOME/Maildir) &>/tmp/${CRONUSER}-cron-backup_maildir.log
 
index 84044ce03e1da9a4043639e22567de08127d03a1..4eade1b1b444b8e529dab0954ede47f86988cacc 100644 (file)
@@ -1,6 +1,6 @@
 
 #[backup_mailman_archives]
 # creates a monthly backup of all the mailman list server's archives.
-14 2 28 * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; tar -czf /z/stuffing/archives/mailman_backup_$(hostname)_$(date_stringer).tar.gz /var/lib/mailman ) &>/tmp/${CRONUSER}-cron-mailman_backup.log
+14 2 28 * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; tar -czf /z/stuffing/archives/mailman_backup_$(hostname)_$(date_stringer).tar.gz /var/lib/mailman ) &>/tmp/${CRONUSER}-cron-mailman_backup.log
 
 
index 991b6f6fd720547ebed55426588c7339916f33b4..4f9c3b10ca7b86837b2bea345cc4ab7c4d305bf0 100644 (file)
@@ -1,5 +1,5 @@
 
 #[backup mysql databases]
 # backs up all of our mysql databases on a weekly basis.
-28 4 * * 2 (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; mysqldump -u root '-pPASSWORD' --all-databases | gzip > /z/stuffing/archives/database_backup_$(hostname)_$(date_stringer).sql.gz) &>>/tmp/${CRONUSER}-cron-backup_mysql_databases.log
+28 4 * * 2 (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; mysqldump -u root '-pPASSWORD' --all-databases | gzip > /z/stuffing/archives/database_backup_$(hostname)_$(date_stringer).sql.gz) &>>/tmp/${CRONUSER}-cron-backup_mysql_databases.log
 
index a061dd94504b67cc3eb4812567217347e8b46827..8a51b931b10342a04545d9fef77170b4c8f0c736 100644 (file)
@@ -1,5 +1,5 @@
 
 #[backup photo albums]
 # back up the pictures in coppermine gallery every month.
-34 6 4 * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; tar -czf /z/stuffing/archives/photo_albums_backup_$(date_stringer).tar.gz /home/albums ; refred) &>>/tmp/${CRONUSER}-cron-backup_photo_albums.log
+34 6 4 * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; tar -czf /z/stuffing/archives/photo_albums_backup_$(date_stringer).tar.gz /home/albums ; refred) &>>/tmp/${CRONUSER}-cron-backup_photo_albums.log
 
index 0fe25fff94f52e88ef8de8679ca6c853f088d479..7742731dab192cfd747889760e4b498b61fc735e 100644 (file)
@@ -1,5 +1,5 @@
 
 #[backup serene system]
 # backs up config files and important parts of home directories to off-machine storage.
-14 2 * * */7 (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/archival/serene_backer_upper.sh) &>>/tmp/${CRONUSER}-cron-backup_serene_system.log
+14 2 * * */7 (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/archival/serene_backer_upper.sh) &>>/tmp/${CRONUSER}-cron-backup_serene_system.log
 
index 007cb0241a568f108d0ef2cd1d8559262726f712..8fcd8b24fa2c51a2dae3efd06e689a5f36ca0c94 100644 (file)
@@ -1,5 +1,5 @@
 
 #[backup trac]
 # backs up trac every week.
-28 7 * * 2 bash $HOME/feisty_meow/scripts/archival/backup_trac.sh /home/trac /z/stuffing/archives &>>/tmp/${CRONUSER}-cron-backup_trac.log
+28 7 * * 2 bash $FEISTY_MEOW_APEX/scripts/archival/backup_trac.sh /home/trac /z/stuffing/archives &>>/tmp/${CRONUSER}-cron-backup_trac.log
 
index 14b57d03fb67c740f319ce12da6520f01362155c..29f4fde3af41a73a323f39220f1e0c7682a0b6c9 100644 (file)
@@ -1,5 +1,5 @@
 
 #[bookmarks builder]
 # regenerate the bookmarks pages.
-24 10 * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/bookmarks/create_marks.sh ) &>>/tmp/${CRONUSER}-cron-bookmarks_builder.log 
+24 10 * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/bookmarks/create_marks.sh ) &>>/tmp/${CRONUSER}-cron-bookmarks_builder.log 
 
index e6178d60d2986f962c7f7ea970a19ad7a2f3b786..035ee8e6b9fe8e0a552f2d17170acb61d749cd07 100644 (file)
@@ -1,6 +1,6 @@
 
 #[doxygen]
 # 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 $FEISTY_MEOW_APEX/documentation; make) &>>/tmp/${CRONUSER}-cron-doxygen.log 
+20 4 * * 2,4,6 (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; cd $FEISTY_MEOW_APEX/documentation; make) &>>/tmp/${CRONUSER}-cron-doxygen.log 
 
 
index 52cd167d71cb5c2206d084ab61575cc2518f1457..8a4feee54cc5f70dfa894cfe1b8ac3a90b3e9738 100644 (file)
@@ -3,5 +3,5 @@
 # runs every minute and recreates a fortune for thunderbird signature.
 # a lot of the detail below is to get the feisty meow environment loaded for
 # the new_sig command.
-* * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; perl $FEISTY_MEOW_SCRIPTS/text/new_sig.pl) &>>/tmp/${CRONUSER}-cron-nechung_fortune.log
+* * * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; perl $FEISTY_MEOW_SCRIPTS/text/new_sig.pl) &>>/tmp/${CRONUSER}-cron-nechung_fortune.log
 
index c6d8525b7f6469ce82be6b640eb28a901502004a..e3a6411321097ffbf6ebf7fb97c7ca5aaadfbdc0 100644 (file)
@@ -1,5 +1,5 @@
 
 #[opensim restart]
 # ensure opensim is started if we can't detect it as running.
-*/5 * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/opensim/maybe_restart_opensim.sh) &>>/tmp/${CRONUSER}-cron-opensim_restart.log 
+*/5 * * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/opensim/maybe_restart_opensim.sh) &>>/tmp/${CRONUSER}-cron-opensim_restart.log 
 
index 0f5b6a1af4349eac329f09340da0f6aae38d2a02..9b5130e715393f9e2bf84b006c118b567c2baa2b 100644 (file)
@@ -1,5 +1,5 @@
 
 #[pack feisty for web]
 # this packs up our source code distributions every 8 days.
-16 22 */8 * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/archival/pack_feisty_meow.sh) &>>/tmp/${CRONUSER}-cron-pack_feisty_for_web.log 
+16 22 */8 * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/archival/pack_feisty_meow.sh) &>>/tmp/${CRONUSER}-cron-pack_feisty_for_web.log 
 
index b1a9a96cc03da9c0399a8fdff02fddb95634eb6d..39e1ed758c888d655e880f8cdcadfded262c3384 100644 (file)
@@ -1,5 +1,5 @@
 
 #[process check]
 # a crontab for periodically dumping the process state.
-* * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/processes/show_hot_ones.sh) &>>/tmp/${CRONUSER}-cron-active_processes.log 
+* * * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/processes/show_hot_ones.sh) &>>/tmp/${CRONUSER}-cron-active_processes.log 
 
index 37920150d0e6ff711fd0f2d319ccaf329fb7a114..fe1e07b5c77ea8ed4406f8823554f1e1ed5a251f 100644 (file)
@@ -1,4 +1,4 @@
 
 #[random sound]
-* * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/multimedia/randomly_play.sh) &>>/tmp/${CRONUSER}-cron-random_sound.log
+* * * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/multimedia/randomly_play.sh) &>>/tmp/${CRONUSER}-cron-random_sound.log
 
index 45b61f5c146054d4be54171bdda3fe80934bea92..bf7dcc3e8514bed45060124394fa7fd0b3786c37 100644 (file)
@@ -1,5 +1,5 @@
 
 #[snarf linux configuration]
 # do a backup of the linux configuration files once a week.
-28 7 * * 4 (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd /z/stuffing/archives; perl $FEISTY_MEOW_SCRIPTS/archival/snarf_linux_config.pl) &>>/tmp/${CRONUSER}-cron-snarf_linux_configuration.log
+28 7 * * 4 (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; cd /z/stuffing/archives; perl $FEISTY_MEOW_SCRIPTS/archival/snarf_linux_config.pl) &>>/tmp/${CRONUSER}-cron-snarf_linux_configuration.log
 
index d5b6f5fdd7aeeb0d12ef241930fe4f4ed109daec..0d78316920e5c40b112cdea2edbf243091fe1b1b 100644 (file)
@@ -4,5 +4,5 @@
 # repositories, such as sourceforge or github.  the uploading process (which we think of as sending
 # those updated items swimming downstream to their dependent repositories) is done automatically in
 # our makefiles.  that's why the code below relies on the top-level makefile in home.
-14 3 * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd $HOME ; bash $FEISTY_MEOW_SCRIPTS/rev_control/rev_update.sh ; make ) &>>/tmp/${CRONUSER}-cron-synch_and_swim_downstream.log
+14 3 * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; cd $HOME ; bash $FEISTY_MEOW_SCRIPTS/rev_control/rev_update.sh ; make ) &>>/tmp/${CRONUSER}-cron-synch_and_swim_downstream.log
 
index a41a564816b5835b003c835e0902f974ef49b337..bf625c30a1acf06ea00065434d63bc03d69af60a 100644 (file)
@@ -1,5 +1,5 @@
 
 #[tell zooty our ip]
 # firewall host only--inform serene/zooty of our home IP address to enable back-connections.
-0,14,28,42,56 * * * * (bash $HOME/feisty_meow/scripts/security/tell_zooty_our_ip.sh serene.feistymeow.org fred $CRONUSER ) &>>/tmp/${CRONUSER}-cron-tell_zooty_our_ip.log
+0,14,28,42,56 * * * * (bash $FEISTY_MEOW_APEX/scripts/security/tell_zooty_our_ip.sh serene.feistymeow.org fred $CRONUSER ) &>>/tmp/${CRONUSER}-cron-tell_zooty_our_ip.log
 
index 1d3930a2483813b22edbd982f9aedaee61e6888a..cb6568c8e75c08a9753413d6f18a66c130053bd7 100644 (file)
@@ -2,6 +2,6 @@
 
 #[update apt based linux crontab]
 # does a daily update of an apt-based linux box at pi o'clock.
-14 3 * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/system/naive_system_updater.sh) &>>/tmp/${CRONUSER}-cron-update_aptbased_linux.log
+14 3 * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/system/naive_system_updater.sh) &>>/tmp/${CRONUSER}-cron-update_aptbased_linux.log
 
 
index ce08b1a3d5b4a5294ff2e16ce55a5f7f0b7066f4..e1b31a67fc134e22820968b891f63d358cee4965 100644 (file)
@@ -1,5 +1,5 @@
 
 #[uptime report]
 # the script writes the current time and current uptime to the log file.
-0 * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/system/write_uptime_report.sh) &>>/tmp/${CRONUSER}-cron-uptime_report.log
+0 * * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_SCRIPTS/system/write_uptime_report.sh) &>>/tmp/${CRONUSER}-cron-uptime_report.log