ansible-collection-famedly-.../roles/synapse/templates/matrix-synapse.service.j2

24 lines
681 B
Text
Raw Normal View History

2019-02-21 22:16:22 +00:00
[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
2019-02-21 22:16:22 +00:00
[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
2019-02-21 22:16:22 +00:00
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