matrix-docker-ansible-deploy/roles/matrix-server/templates/cron.d/matrix-periodic-restarter.j2
2017-07-31 23:08:20 +03:00

12 lines
456 B
Django/Jinja

MAILTO="{{ ssl_support_email }}"
# This periodically restarts the Matrix services
# to ensure they're using the latest SSL certificate
# in case it got renewed by the `ssl-certificate-renewal` cronjob
# (which happens once every ~2-3 months).
#
# Because `matrix-nginx-proxy.service` depends on `matrix-synapse.service`,
# both would be restarted.
{{ matrix_services_restart_cron_time_definition }} root /usr/bin/systemctl restart matrix-synapse.service