Additional configuration files.
This commit is contained in:
28
modoboa_installer/scripts/files/modoboa/crontab.tpl
Normal file
28
modoboa_installer/scripts/files/modoboa/crontab.tpl
Normal file
@@ -0,0 +1,28 @@
|
||||
#
|
||||
# Modoboa specific cron jobs
|
||||
#
|
||||
PYTHON=%{venv_path}/bin/python
|
||||
INSTANCE=%{instance_path}
|
||||
|
||||
# Operations on mailboxes
|
||||
* * * * * %{dovecot_mailboxes_owner} $PYTHON $INSTANCE/manage.py handle_mailbox_operations
|
||||
|
||||
# Sessions table cleanup
|
||||
0 0 * * * root $PYTHON $INSTANCE/manage.py clearsessions
|
||||
|
||||
# Logs table cleanup
|
||||
0 0 * * * root $PYTHON $INSTANCE/manage.py cleanlogs
|
||||
|
||||
{% if use_amavis %}
|
||||
# Quarantine cleanup
|
||||
0 0 * * * root $PYTHON $INSTANCE/manage.py qcleanup
|
||||
|
||||
# Notifications about pending release requests
|
||||
0 12 * * * root $PYTHON $INSTANCE/manage.py amnotify --baseurl='http://%{hostname}'
|
||||
{% endif %}
|
||||
|
||||
# Logs parsing
|
||||
*/5 * * * * root $PYTHON $INSTANCE/manage.py logparser &> /dev/null
|
||||
|
||||
# Radicale rights file
|
||||
*/2 * * * * root $PYTHON $INSTANCE/manage.py generate_rights
|
||||
Reference in New Issue
Block a user