# (crontab installed on Sat Jan 22 07:35:02 1994)
# (Cron version -- $Header: crontab.c,v 2.2 90/07/18 00:23:56 vixie Exp $)
# Edit this file to reflect your local needs.

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

#
# Format: minute hour day-of-month month day-of-week command
#

# Check for `at' jobs every minute and run them if needed.
* * * * * /usr/lib/atrun
 
# Move /var/adm/acct to /var/adm/acct.old nightly so that it doesn't grow too
# large.
#00 02 * * * accton ; mv /var/adm/acct /var/adm/acct.old ; touch /var/adm/acct ; accton /var/adm/acct

# Mail the log files in /var/adm to `root' once they reach a certain size and
# erase them.  Do this nightly.
05 02 * * * find /var/adm/maillog -size +10k -exec mail -s "{}" root < /var/adm/maillog \; -exec cp /dev/null {} \;
06 02 * * * find /var/adm/messages -size +10k -exec mail -s "{}" root < /var/adm/messages \; -exec cp /dev/null {} \;
07 02 * * * find /var/adm/secure -size +10k -exec mail -s "{}" root < /var/adm/secure \; -exec cp /dev/null {} \;
08 02 * * * find /var/adm/spooler -size +10k -exec mail -s "{}" root < /var/adm/spooler \; -exec cp /dev/null {} \;
09 02 * * * find /var/adm/lp-acct -size +10k -exec mail -s "{}" root < /var/adm/lp-acct \; -exec cp /dev/null {} \;
09 02 * * * find /var/adm/lp-err -size +10k -exec mail -s "{}" root < /var/adm/lp-err \; -exec cp /dev/null {} \;

# Update the `whatis' database weekly (every Sunday morning).
10 02 * * 1 makewhatis /usr/man /usr/local/man /usr/X386/man

# Update the `find.codes' database nightly.
20 02 * * * /var/adm/locate/updatedb 2>/dev/null

# Change the permissions/ownerships in the man directories so that all users
# can create formatted catpages.
21 02 * * * chown -R root.man /usr/man /usr/local/man /usr/X386/man /var/catman
22 02 * * * chmod 755 /usr/man /usr/man/man? /usr/local/man /usr/local/man/man? /usr/X386/man /usr/X386/man/man? 2>/dev/null
23 02 * * * chmod 775 /var/catman/cat?
24 02 * * * chmod 444 /usr/man/man?/* /usr/local/man/man?/* /usr/X386/man/man?/* 2>/dev/null

# Erase /var/adm/wtmp when it reaches a certain size so that it doesn't grow too
# large.
25 02 * * * find /var/adm/wtmp -size +20k -exec cp /dev/null {} \;

# Erase files nightly in /var/tmp that are older than a certain number of days.
30 02 * * * find /var/tmp/* -mtime +3 -exec rm -f {} \; 2>/dev/null
