# root crontab

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
MAILTO=root

# Run any at jobs every minute
* * * * * /usr/sbin/atrun

# Make the whatis databases
21 03 * * 1 /usr/sbin/makewhatis /usr/man /usr/X11/man /usr/local/man

# Make the find.codes database
47 02 * * * /usr/bin/updatedb 2> /dev/null

# Trim wtmp
45 02 * * * find /var/adm/wtmp -size +32k -exec cp /dev/null {} \;

# Remove /var/tmp files not accessed in 10 days
43 02 * * * find /var/tmp/* -atime +3 -exec rm -f {} \; 2> /dev/null

# Remove /tmp files not accessed in 10 days
# I commented out this line because I tend to "store" stuff in /tmp
# 41 02 * * * find /tmp/* -atime +10 -exec rm -f {} \; 2> /dev/null

# Remove formatted man pages not accessed in 10 days
39 02 * * * find /var/catman/cat?/* -atime +10 -exec rm -f {} \; 2> /dev/null

# Remove and TeX fonts not used in 10 days
35 02 * * * find /var/tex/* -type f -atime +10 -exec rm -f {} \; 2> /dev/null

# Trim log files
34 02 * * * find /var/adm/maillog -size +16k -exec Mail -s "{}" root < /var/adm/maillog \; -exec cp /dev/null {} \;
33 02 * * * find /var/adm/messages -size +32k -exec Mail -s "{}" root < /var/adm/messages \; -exec cp /dev/null {} \;
32 02 * * * find /var/adm/secure -size +16k -exec Mail -s "{}" root < /var/adm/secure \; -exec cp /dev/null {} \;
31 02 * * * find /var/adm/spooler -size +16k -exec Mail -s "{}" root < /var/adm/spooler \; -exec cp /dev/null {} \;
30 02 * * * find /var/spool/cron/log -size +16k -exec Mail -s "{}" root < /var/spool/cron/log \; -exec cp /dev/null {} \;
