xoxys.matrix/templates/etc/systemd/system/matrix.service.j2

21 lines
470 B
Plaintext
Raw Normal View History

2019-01-18 14:52:23 +01:00
#jinja2: lstrip_blocks: True
## {{ ansible_managed }}
[Unit]
2019-01-19 01:30:45 +01:00
Description=Synapse Matrix homeserver
2019-01-18 14:52:23 +01:00
[Service]
2019-01-19 01:30:45 +01:00
Type=simple
Restart=on-abort
User={{ matrix_user }}
Group={{ matrix_group }}
WorkingDirectory={{ matrix_base_dir }}
ExecStart={{ matrix_base_dir }}/env/bin/python -m synapse.app.homeserver --config-path={{ matrix_conf_dir }}/homeserver.yaml
# adjust the cache factor if necessary
# Environment=SYNAPSE_CACHE_FACTOR=2.0
2019-01-18 14:52:23 +01:00
[Install]
WantedBy=multi-user.target