Skip to content

Instantly share code, notes, and snippets.

@Dispader
Created January 24, 2014 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dispader/8609122 to your computer and use it in GitHub Desktop.
Save Dispader/8609122 to your computer and use it in GitHub Desktop.
new webapps-ent (oit-wa-ent0[1,2]) crontab entries
# 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