2018-12-07 08:43:41 -05: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
|
|
|
|
#
|
2019-12-05 08:13:47 -05:00
|
|
|
# This assumes that Synapse has been installed by a user named
|
|
|
|
# synapse.
|
|
|
|
#
|
2018-12-07 08:43:41 -05:00
|
|
|
# This assumes that Synapse has been installed in a virtualenv in
|
2019-12-05 08:13:47 -05:00
|
|
|
# the user's home directory: `/home/synapse/synapse/env`.
|
2018-12-07 08:43:41 -05:00
|
|
|
#
|
|
|
|
# **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
|
2020-05-28 11:02:41 -04:00
|
|
|
# If you are using postgresql to persist data, uncomment this line to make sure
|
|
|
|
# synapse starts after the postgresql service.
|
|
|
|
# After=postgresql.service
|
2018-12-07 08:43:41 -05:00
|
|
|
|
|
|
|
[Service]
|
2019-07-22 10:24:25 -04:00
|
|
|
Type=notify
|
|
|
|
NotifyAccess=main
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2018-12-07 08:43:41 -05:00
|
|
|
Restart=on-abort
|
|
|
|
|
|
|
|
User=synapse
|
|
|
|
Group=nogroup
|
|
|
|
|
2019-12-09 09:40:37 -05:00
|
|
|
WorkingDirectory=/home/synapse/synapse
|
2019-12-05 08:13:47 -05:00
|
|
|
ExecStart=/home/synapse/synapse/env/bin/python -m synapse.app.homeserver --config-path=/home/synapse/synapse/homeserver.yaml
|
2019-05-10 04:09:25 -04:00
|
|
|
SyslogIdentifier=matrix-synapse
|
2018-12-07 08:43:41 -05:00
|
|
|
|
|
|
|
# adjust the cache factor if necessary
|
|
|
|
# Environment=SYNAPSE_CACHE_FACTOR=2.0
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|