Guest User

Untitled

a guest
Nov 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. # /etc/crontab: system-wide crontab
  2. # Unlike any other crontab you don't have to run the `crontab'
  3. # command to install the new version when you edit this file
  4. # and files in /etc/cron.d. These files also have username fields,
  5. # that none of the other crontabs do.
  6.  
  7. SHELL=/bin/sh
  8. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  9.  
  10. # m h dom mon dow user command
  11. 53 * * * * root cd / && run-parts --report /etc/cron.hourly
  12. 29 5 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
  13. 50 1 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
  14. 38 3 12 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
  15.  
  16. 30 1 * * 1 deployer /home/deployer/cronRefresh.sh &>> /var/log/report/cron.log
  17. 0 */2 * * * deployer /home/deployer/cronLoadReport.sh &>> /var/log/report/cron.log
  18. */5 * * * * root /usr/bin/touch /tmp/cron.tmp >> /tmp/touch.log 2>&1
  19.  
  20. #gzip logs until we use logrotate / syslog
  21. 33 2 * * * find /usr/local/tomcat/logs/ /var/log/wrapper/ /var/log/webpage/ /var/log/switch/ /var/log/ibe/ /var/log/cm/ /var/log/accounts/ -regex ".+-[0-9][0-9]\(.log\)?$" -exec gzip {} \;
  22.  
  23. #clean tomcat temp dir / gzip old tomcat standard logs / remove old tomcat standard logs
  24. 44 2 * * * root find /usr/local/tomcat/temp/ -mtime +1 -exec rm -rf {} \;
  25. 47 2 * * * root find /usr/local/tomcat/logs/ -mtime +120 -exec rm -rf {} \;
Add Comment
Please, Sign In to add comment