Scheduled commands
Scheduled commands are configured as cronjobs to carry out house keeping and maintenance tasks on the system by default.
The following scheduled paster commands are installed and enabled by default.
uwsgi cron
On systems of Standalone System
and Web and Mail System
profiles,
uwsgi cron is used to run the scheduled commands instead of the system
cron.
The cronjobs on systems of these profiles are automatically added to the
uwsgi configuration /etc/uwsgi/baruwa.ini
which is a symlink to
/etc/baruwa/production.ini
.
/etc/cron.d/baruwa
On systems that are not of Standalone System
and Web and Mail System
profiles, system cron is used and the commands are added to
/etc/cron.d/baruwa
.
Command schedules
Interval | Command | Description |
3 Minutes | paster update-queue-stats /etc/baruwa/production.ini | Updates the mail queue statistics |
@ 00H00 | update-sa-rules | Updates the Spam rules descriptions for the web interface |
Hourly | paster send-quarantine-reports /etc/baruwa/production.ini | Sends out the quarantine reports in the users timezone |
@ 01H00 | paster prune-database /etc/baruwa/production.ini | Archives old records to the archive table and prunes old records from the archive table |
@ 02H00 | paster prune-quarantine /etc/baruwa/production.ini | Deletes old quarantined messages from disk |
@ 10 mins every hour on the 1st | paster send-pdf-reports /etc/baruwa/production.ini | Sends out the PDF reports in the users timezone |
@ 20 mins every hour every day | paster send-pdf-reports -t domain -p daily -d 1 /etc/baruwa/production.ini | Sends out the daily PDF reports in users timezone |
@ 30 mins every hour on Monday | paster send-pdf-reports -t domain -p weekly -d 7 /etc/baruwa/production.ini | Sends out the weekly PDF reports in users |
Other scheduled commands
You will find all the other schedules system commands in the cron directories in
/etc/cron.d
/etc/cron.hourly
/etc/cron.daily
/etc/cron.weekly