unified the naming system for all crontabs
authorChris Koeritz <fred@gruntose.com>
Tue, 3 Jan 2017 16:59:12 +0000 (11:59 -0500)
committerChris Koeritz <fred@gruntose.com>
Tue, 3 Jan 2017 16:59:12 +0000 (11:59 -0500)
now every crontab that should produce an output file follows the form: &>>/tmp/${USER}-cron-PURPOSE.log where PURPOSE depends on what the crontab does.

19 files changed:
infobase/configuration/cron/backup_git_account.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/chkrootkit.crontab
infobase/configuration/cron/doxygen.crontab
infobase/configuration/cron/emit_crontab.crontab
infobase/configuration/cron/letsencrypt_renewal.crontab
infobase/configuration/cron/mailman_attribute_fix.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/tell_zooty_our_ip.crontab
infobase/configuration/cron/time_synch.crontab
infobase/configuration/cron/uptime_report.crontab

index c7536f4699f839ebb5ebf13eed3d165c041213b8..ab75d0bcaf4d77efa8ac9d8fae49837a53bc8e37 100644 (file)
@@ -1,5 +1,5 @@
 
 #[backup git account]
 # archives the whole ~git folder with all account databases into a compressed tar file.
-34 20 * * 5 tar -czf /z/stuffing/archives/git_archive_$(date +"\%Y_\%m_\%d_\%H\%M_\%S" | tr -d '/\n/').tar.gz /home/git >/home/git/archiving_log.txt 
+34 20 * * 5 tar -czf /z/stuffing/archives/git_archive_$(date +"\%Y_\%m_\%d_\%H\%M_\%S" | tr -d '/\n/').tar.gz /home/git &>>/tmp/${USER}-cron-backup_git_account.log
 
index e4a8f21d6f61fe5fdb99d98025ed783007e96348..4bca961e888b822079e9f543b85814531f5b2114 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/database_backup_${USER}.log
+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/${USER}-cron-backup_mysql_databases.log
 
index 6702dee8806d4d4b3995bbea9519aaeab509c301..32a5200471f75b88faa1f2482e630c95ffcd9c56 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/albums_backup_${USER}.log
+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/${USER}-cron-backup_photo_albums.log
 
index b75b3400f23e5f2421bd9fcdf47c220a08d819f6..146a16d4cf8e12c24b84308963cfc19ed8eec5c7 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 $HOME/feisty_meow/scripts/archival/serene_backer_upper.sh) &>/tmp/offmachine_backup.log
+14 2 * * */7 (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/archival/serene_backer_upper.sh) &>>/tmp/${USER}-cron-backup_serene_system.log
 
index 2ca58273373567cdc48a5e631fe495e0e1e7d2be..992446a851c14961c256b92cc6e46592f1830fe9 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
+28 7 * * 2 bash $HOME/feisty_meow/scripts/archival/backup_trac.sh /home/trac /z/stuffing/archives &>>/tmp/${USER}-cron-backup_trac.log
 
index e1458436460f072e9a9c5a3039fd994ecebca333..acd7cc04f5a49ac7e16506d3dfe421b842f87648 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 $HOME/feisty_meow/scripts/bookmarks/create_marks.sh ) &>>/tmp/zz_bookmarkingering_$USER.log 
+24 10 * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/bookmarks/create_marks.sh ) &>>/tmp/${USER}-cron-bookmarks_builder.log 
 
index 6200addda38369a835e06c5248a7ac4616cb60e6..778a26487be07b1fe3acd0d4d37208220aebb8cb 100644 (file)
@@ -2,6 +2,6 @@
 #[chkrootkit]
 # this runs chkrootkit to demonstrate a bug in the vm kernel currently
 # provided by...?  hmmm: who's the vendor?
-3 * * * * (/usr/sbin/chkrootkit -q &>/var/www/rootkit_report_quiet.txt )
-4 * * * * (/usr/sbin/chkrootkit -x &>/var/www/rootkit_report_expert.txt )
+3 * * * * (/usr/sbin/chkrootkit -q &>/var/www/rootkit_report_quiet.txt ) &>>/tmp/${USER}-cron-chkrootkit.log 
+4 * * * * (/usr/sbin/chkrootkit -x &>/var/www/rootkit_report_expert.txt ) &>>/tmp/${USER}-cron-chkrootkit.log 
 
index 3b55e5c92b7b0ea87b809e1e63da5c2ce9d79095..fa51d99a9e9fc15e56b2859fbd730eff1e7d8655 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 $HOME/feisty_meow/documentation; make) &>>/tmp/zz_doxy_make_$USER.log
+20 4 * * 2,4,6 (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd $HOME/feisty_meow/documentation; make) &>>/tmp/${USER}-cron-doxygen.log 
 
 
index 0baeff8194e808a46a33eb58cc70bbaa01bd0954..627d16dc33e8f0ae6b755473384e67338e6d63b7 100644 (file)
@@ -1,5 +1,5 @@
 
 #[emit crontab]
 # meta-operation to backup the crontab file using cron itself.
-28 */8 * * * crontab -l >$HOME/$USER.crontab
+28 */8 * * * crontab -l >$HOME/$(hostname).$USER.crontab
 
index e7d08da5e29c56f00b8834ba92f9827c3c20c1f3..18a43ef6af6f4d2d556fe14c734232dc3fe6e86f 100644 (file)
@@ -1,5 +1,5 @@
 
 #[letsencrypt renewal]
 # run the letsencrypt certificate renewal process every 4 hours.
-37 */4 * * * letsencrypt renew  &>>/tmp/letsencrypt_last_run.txt
+37 */4 * * * letsencrypt renew &>>/tmp/${USER}-cron-letsencrypt_renewal.log 
 
index 1fbac1e9302e706e972f1a2ff04c9194f9daadd5..72ea73e8bf584970b85048c41cc93bd4778c2ce2 100644 (file)
@@ -1,5 +1,5 @@
 
 #[mailman attribute fix]
-# fix the mailman binaries.
+# fix the mailman log files so that an obnoxious bug doesn't happen on the mailman web site.
 23 5 * * * chmod -R 02775 /var/lib/mailman/logs &>/dev/null 
 
index c6e693f0aa11ae28f476b2bd27beca855d963ef3..8a91afbf3e8b99a5c47665c2a5ba4800f2863357 100644 (file)
@@ -1,5 +1,5 @@
 
 #[opensim restart]
 # 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
+*/5 * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/opensim/maybe_restart_opensim.sh) &>>/tmp/${USER}-cron-opensim_restart.log 
 
index c53678f17d8553cfd2b861ddbc38fc2f5504d5e6..1f90527c9046f3a1ffbc749c335357a13e00a654 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 $HOME/feisty_meow/scripts/archival/pack_feisty_meow.sh) &>$TMP/zz_packing_cron.log 
+16 22 */8 * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/archival/pack_feisty_meow.sh) &>>/tmp/${USER}-cron-pack_feisty_for_web.log 
 
index 509a605dea8a70e8785dc6bd29363962dc7b646b..131df39c81143b9b81f6f51d5ae5d7f02baaae41 100644 (file)
@@ -1,5 +1,5 @@
 
 #[process check]
 # a crontab for periodically dumping the process state.
-* * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/processes/show_hot_ones.sh) &>>/home/$USER/zz_hot_processes.log 
+* * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/processes/show_hot_ones.sh) &>>/tmp/${USER}-cron-active_processes.log 
 
index 5753856ca2f4aa5cdf0b4315669b906c5f10ad8d..106dbf972011a658f6188cf6563d830146dd3304 100644 (file)
@@ -1,4 +1,4 @@
 
 #[random sound]
-* * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/multimedia/randomly_play.sh) &>>/tmp/zz_random_sound_$USER.log
+* * * * * (export LIGHTWEIGHT_INIT=true; source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/multimedia/randomly_play.sh) &>>/tmp/${USER}-cron-random_sound.log
 
index 554f914fa5d45170d2c535b8935b3bb36eb9d826..c670cb5fe9d9cd57fd50582f648c1ede63b5ec75 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 $HOME/feisty_meow/scripts/archival/snarf_linux_config.pl) &>>/tmp/zz_linux_config_snarf_$USER.log
+28 7 * * 4 (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; cd /z/stuffing/archives; perl $HOME/feisty_meow/scripts/archival/snarf_linux_config.pl) &>>/tmp/${USER}-cron-snarf_linux_configuration.log
 
index 477b0a5cda5dc731b2b28e8104bec17289e1d6e9..a6c31a1ce4e7e8e7846d4d16d9cbdc97ccbdb049 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/fred/feisty_meow/scripts/security/tell_zooty_our_ip.sh serene.feistymeow.org fred fred ) &>>/tmp/zooty_tell_report.txt
+0,14,28,42,56 * * * * (bash /home/fred/feisty_meow/scripts/security/tell_zooty_our_ip.sh serene.feistymeow.org fred fred ) &>>/tmp/${USER}-cron-tell_zooty_our_ip.log
 
index aca7618e015bbea4ee6ac597bc00399ec0d13a5e..8b4ff038d657de8c435565920d556cf2837ae176 100644 (file)
@@ -1,14 +1,14 @@
 
-#[time synch crontab]
+#[time synch]
 
 # standard to synch to local machine.
-0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * /usr/sbin/sntp -P no -r greendragon
-or
-0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * /usr/bin/rdate -s -n greendragon
+#0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * /usr/sbin/sntp -P no -r greendragon &>>/tmp/${USER}-cron-time_synch.log
+#or
+0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * /usr/bin/rdate -s -n greendragon &>>/tmp/${USER}-cron-time_synch.log
 # -n is nntp which may not work with govt servers.
 
 # one machine on the network uses this version, to synch externally.
-#0 0,4,8,12,16,20 * * * /usr/sbin/sntp -P no -r time.nist.gov
+#0 0,4,8,12,16,20 * * * /usr/sbin/sntp -P no -r time.nist.gov &>>/tmp/${USER}-cron-time_synch.log
 #or
-0 0,4,8,12,16,20 * * * /usr/bin/rdate -s time-c.nist.gov
+0 0,4,8,12,16,20 * * * /usr/bin/rdate -s time-c.nist.gov &>>/tmp/${USER}-cron-time_synch.log
 
index 32bd5092a57cbf0910e94695f13e08315cef73bc..1494c34c1c846b862fdb3d1c206582563ca24dcf 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 $HOME/feisty_meow/scripts/system/write_uptime_report.sh) &>>/tmp/zz_uptime_report_$USER.log
+0 * * * * (source $HOME/feisty_meow/scripts/core/launch_feisty_meow.sh; bash $HOME/feisty_meow/scripts/system/write_uptime_report.sh) &>>/tmp/${USER}-cron-uptime_report.log