Project

General

Profile

« Previous | Next » 

Revision d50c3172

Added by Stephen Benjamin over 9 years ago

refs #7586 - setup cron jobs for mail notifications

View differences:

debian/precise/foreman/foreman.cron.d
# Clean up the session entries in the database
15 23 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake db:sessions:clear >>/var/log/foreman/cron.log 2>&1
# Send out daily summary
0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:summarize >>/var/log/foreman/cron.log 2>&1
# Send out recurring notifications
0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:daily >>/var/log/foreman/cron.log 2>&1
0 5 * * 0 foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:weekly >>/var/log/foreman/cron.log 2>&1
0 3 1 * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:monthly >>/var/log/foreman/cron.log 2>&1
# Expire old reports
30 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:expire >>/var/log/foreman/cron.log 2>&1
debian/squeeze/foreman/foreman.cron.d
# Clean up the session entries in the database
15 23 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake db:sessions:clear >>/var/log/foreman/cron.log 2>&1
# Send out daily summary
0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:summarize >>/var/log/foreman/cron.log 2>&1
# Send out recurring notifications
0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:daily >>/var/log/foreman/cron.log 2>&1
0 5 * * 0 foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:weekly >>/var/log/foreman/cron.log 2>&1
0 3 1 * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:monthly >>/var/log/foreman/cron.log 2>&1
# Expire old reports
30 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:expire >>/var/log/foreman/cron.log 2>&1
debian/trusty/foreman/foreman.cron.d
# Clean up the session entries in the database
15 23 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake db:sessions:clear >/var/log/foreman/cron.log 2>&1
# Send out daily summary
0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:summarize >/var/log/foreman/cron.log 2>&1
# Send out recurring notifications
0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:daily >>/var/log/foreman/cron.log 2>&1
0 5 * * 0 foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:weekly >>/var/log/foreman/cron.log 2>&1
0 3 1 * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:monthly >>/var/log/foreman/cron.log 2>&1
# Expire old reports
30 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:expire >/var/log/foreman/cron.log 2>&1
debian/wheezy/foreman/foreman.cron.d
# Clean up the session entries in the database
15 23 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake db:sessions:clear >>/var/log/foreman/cron.log 2>&1
# Send out daily summary
0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:summarize >>/var/log/foreman/cron.log 2>&1
# Send out recurring notifications
0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:daily >>/var/log/foreman/cron.log 2>&1
0 5 * * 0 foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:weekly >>/var/log/foreman/cron.log 2>&1
0 3 1 * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:monthly >>/var/log/foreman/cron.log 2>&1
# Expire old reports
30 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:expire >>/var/log/foreman/cron.log 2>&1

Also available in: Unified diff