forked from MirrorHub/synapse
68f737702b
Non-existing files, when running the suggested from https://github.com/matrix-org/synapse#configuring-synapse /etc/synapse/log_config.yaml so the --log-config leads to an error /etc/sysconfig/synapse The environment-file or even the /etc/sysconfig does not exist in arch linux Also instead of calling python2 we use synctl, as this seems to be the proper way to start it, and it gives us a more useful error in the systemctl status. And we now allow stop (and therefore restart).
17 lines
511 B
Desktop File
17 lines
511 B
Desktop File
# This assumes that Synapse has been installed as a system package
|
|
# (e.g. https://www.archlinux.org/packages/community/any/matrix-synapse/ for ArchLinux)
|
|
# rather than in a user home directory or similar under virtualenv.
|
|
|
|
[Unit]
|
|
Description=Synapse Matrix homeserver
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=synapse
|
|
Group=synapse
|
|
WorkingDirectory=/var/lib/synapse
|
|
ExecStart=/usr/bin/synctl start /etc/synapse/homeserver.yaml
|
|
ExecStop=/usr/bin/synctl stop /etc/synapse/homeserver.yaml
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|