2018-12-07 16:43:41 +03:00
|
|
|
# Example systemd configuration file for synapse. Copy into
|
|
|
|
# /etc/systemd/system/, update the paths if necessary, then:
|
|
|
|
#
|
|
|
|
# systemctl enable matrix-synapse
|
|
|
|
# systemctl start matrix-synapse
|
|
|
|
#
|
|
|
|
# This assumes that Synapse has been installed in a virtualenv in
|
|
|
|
# /opt/synapse/env.
|
|
|
|
#
|
|
|
|
# **NOTE:** This is an example service file that may change in the future. If you
|
|
|
|
# wish to use this please copy rather than symlink it.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Synapse Matrix homeserver
|
|
|
|
|
|
|
|
[Service]
|
2019-07-22 17:24:25 +03:00
|
|
|
Type=notify
|
|
|
|
NotifyAccess=main
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2018-12-07 16:43:41 +03:00
|
|
|
Restart=on-abort
|
|
|
|
|
|
|
|
User=synapse
|
|
|
|
Group=nogroup
|
|
|
|
|
|
|
|
WorkingDirectory=/opt/synapse
|
|
|
|
ExecStart=/opt/synapse/env/bin/python -m synapse.app.homeserver --config-path=/opt/synapse/homeserver.yaml
|
2019-05-10 11:09:25 +03:00
|
|
|
SyslogIdentifier=matrix-synapse
|
2018-12-07 16:43:41 +03:00
|
|
|
|
|
|
|
# adjust the cache factor if necessary
|
|
|
|
# Environment=SYNAPSE_CACHE_FACTOR=2.0
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|