Forum archive
Documentation of cron jobs?
Is there any documentation about the cron jobs installed in TurnKey Core and any application specific cron jobs?
I went through the list of them on my TKL 13 Moodle VM and found the following cron jobs:
(Note, the times have been adjusted for my timezone from the UTC one that the webserver is set on...)
1:25 PM
/etc/cron.daily/passwd
/etc/cron.daily/ntp
/etc/cron.daily/logrotate
/etc/cron.daily/apache2
/etc/cron.daily/man-db
/etc/cron.daily/apt
/etc/cron.daily/mysqloptimize
/etc/cron.daily/dpkg
/etc/cron.daily/bsdmainutils
/etc/cron.daily/tklbam-backup
/etc/cron.daily/etckeeper1:45 PM
/etc/cron.weekly/man-dbOn the 17th minute of the hour:
/etc/cron.hourly/moodle
/etc/cron.hourly/hubdns-update9th minute and on the 39th minute of every hour:
(session clean up?)
[ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete-x /usr/lib/php5/maxlifetime (this is a script)
2:23 PM
test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
Thank you,
leeand00
/usr/lib is handled by package management so I'd expect that the "maxlifetime" one is a component of the php5 package (or one of the many modules). As for the others it should be fairly self explanatory where they come from.