2015-04-29 07:22:20 -04:00
|
|
|
# This assumes that Synapse has been installed as a system package
|
|
|
|
# (e.g. https://aur.archlinux.org/packages/matrix-synapse/ for ArchLinux)
|
|
|
|
# rather than in a user home directory or similar under virtualenv.
|
|
|
|
|
2015-04-28 18:20:08 -04:00
|
|
|
[Unit]
|
|
|
|
Description=Synapse Matrix homeserver
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=synapse
|
|
|
|
Group=synapse
|
2016-04-14 09:46:18 -04:00
|
|
|
EnvironmentFile=-/etc/sysconfig/synapse
|
2015-04-28 18:20:08 -04:00
|
|
|
WorkingDirectory=/var/lib/synapse
|
|
|
|
ExecStart=/usr/bin/python2.7 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml --log-config=/etc/synapse/log_config.yaml
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|