Created
January 24, 2014 23:38
-
-
Save Dispader/8609122 to your computer and use it in GitHub Desktop.
new webapps-ent (oit-wa-ent0[1,2]) crontab entries
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
# Restart webapps-ent daily | |
0 4 * * * /swadm/init.d/webapps-ent downtime-httpd >> /swadm/cronlogs/cron.log 2>&1 | |
5 4 * * * /swadm/init.d/webapps-ent stop-tomcat >> /swadm/cronlogs/cron.log 2>&1 | |
55 4 * * * /swadm/init.d/webapps-ent start-tomcat >> /swadm/cronlogs/cron.log 2>&1 | |
0 5 * * * /swadm/init.d/webapps-ent start-httpd >> /swadm/cronlogs/cron.log 2>&1 | |
# Bring up the downtime page Sunday mornings. | |
0 06 * * 0 /swadm/init.d/webapps-ent downtime-httpd >> /swadm/cronlogs/cron.log 2>&1 | |
# Stop at noon Sunday, and start pillar normally. | |
00 12 * * 0 /swadm/init.d/webapps-ent start-httpd >> /swadm/cronlogs/cron.log 2>&1 | |
# Rotate logs Daily | |
12 04 * * * /swadm/etc/logrotate/weblogclear 2>&1 | |
# Clean up tomcat logs daily | |
15 04 * * * /swadm/bin/remove_old_logs >> /swadm/cronlogs/cron.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment