mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-12-16 05:42:27 +00:00
962a3da203
fixes #9
23 lines
681 B
Django/Jinja
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
|
|
|