synapse.service 549 B

123456789101112131415161718
  1. # This assumes that Synapse has been installed as a system package
  2. # (e.g. https://www.archlinux.org/packages/community/any/matrix-synapse/ for ArchLinux)
  3. # rather than in a user home directory or similar under virtualenv.
  4. [Unit]
  5. Description=Synapse Matrix homeserver
  6. [Service]
  7. Type=simple
  8. User=synapse
  9. Group=synapse
  10. WorkingDirectory=/var/lib/synapse
  11. ExecStart=/usr/bin/python2.7 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml
  12. ExecStop=/usr/bin/synctl stop /etc/synapse/homeserver.yaml
  13. [Install]
  14. WantedBy=multi-user.target