ansible-collection-famedly-.../roles/synapse/templates/matrix-synapse.service.j2
2021-02-01 22:15:52 +01:00

23 lines
681 B
Django/Jinja

[Unit]
Description="Matrix Synapse Server (synapse)"
{% if matrix_synapse_workers_enabled | bool %}
{% for worker in matrix_synapse_workers %}
Wants=matrix-{{ worker.name }}.service
{% endfor %}
{% endif %}
After=network.target
[Service]
Type=simple
WorkingDirectory={{ matrix_synapse_base_path }}
ExecStart={{ matrix_synapse_base_path }}/env/bin/python -m synapse.app.homeserver --config-path={{ matrix_synapse_base_path }}/homeserver.yaml
ExecStop={{ matrix_synapse_base_path }}/env/bin/synctl stop {{ matrix_synapse_base_path }}/homeserver.yaml
User=synapse
Group=synapse
Restart=always
StandardOutput=syslog
SyslogIdentifier=matrix_synapse
[Install]
WantedBy=default.target