Created
July 2, 2012 11:48
-
-
Save phlegx/3032868 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/crontab: system-wide crontab | |
# Unlike any other crontab you don't have to run the `crontab' | |
# command to install the new version when you edit this file | |
# and files in /etc/cron.d. These files also have username fields, | |
# that none of the other crontabs do. | |
SHELL=/bin/sh | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
# m h dom mon dow user command | |
53 * * * * root cd / && run-parts --report /etc/cron.hourly | |
29 5 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) | |
50 1 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) | |
38 3 12 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) | |
*/1 * * * * root /bin/date >> /tmp/date.log 2>&1 | |
#gzip logs until we use logrotate / syslog | |
33 2 * * * find /usr/local/tomcat/logs/ /var/log/wrapper-thirdparty/ /var/log/webpage/ /var/log/switch/ /var/log/ibe/ /var/log/cm/ /var/log/accounts/ -regex ".+-[0-9][0-9]\(.log\)?$" -exec gzip {} \; | |
#clean tomcat temp dir / gzip old tomcat standard logs / remove old tomcat standard logs | |
44 2 * * * root find /usr/local/tomcat/temp/ -mtime +1 -exec rm -rf {} \; | |
47 2 * * * root find /usr/local/tomcat/logs/ -mtime +120 -exec rm -rf {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment