OpenAnswer relies on cron tasks to perform some background checks and task executions including:
- Sending out message summaries
- Cleaning up the database
- Processing the email queue
#clear out old queue statistics if openQview is installed
0 1 * * * /usr/bin/mysql -uusername -password -h localhost openqview -e "DELETE FROM queue_statistics WHERE created < (now() - INTERVAL 2 MONTH)"
# Check the email queue for emails to send out.
*/2 * * * * /usr/bin/GET http://oa.voicenation.com/EmailQueues/process >> /var/log/openconnector/emailqueues.log
# Send out message summaries set at 15, 30, and 60 minute intervals. Also send out summaries set to send out once a day at specified time
*/15 * * * * /usr/bin/GET http://oa.voicenation.com/MessagesSummary/msg_summary_execute/15 >> /var/log/openconnector/OASummary_15.log
*/30 * * * * /usr/bin/GET http://oa.voicenation.com/MessagesSummary/msg_summary_execute/30 >> /var/log/openconnector/OASummary_30.log
0 */1 * * * /usr/bin/GET http://oa.voicenation.com/MessagesSummary/msg_summary_execute/60 >> /var/log/openconnector/OASummary_60.log
*/5 * * * * /usr/bin/GET http://oa.voicenation.com/MessagesSummary/msg_summary_execute >> /var/log/openconnector/OASummary.log
# Check for messages that are marked with 'hold until' and set the minders once time is up
*/5 * * * * /usr/bin/GET http://oa.voicenation.com/Messages/process_hold_until >> /var/log/openconnector/HoldUntil.log