synapse.service 778 B

12345678910111213141516171819202122
  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. # **NOTE:** This is an example service file that may change in the future. If you
  5. # wish to use this please copy rather than symlink it.
  6. [Unit]
  7. Description=Synapse Matrix homeserver
  8. [Service]
  9. Type=simple
  10. User=synapse
  11. Group=synapse
  12. WorkingDirectory=/var/lib/synapse
  13. ExecStart=/usr/bin/python2.7 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml
  14. ExecStop=/usr/bin/synctl stop /etc/synapse/homeserver.yaml
  15. # EnvironmentFile=-/etc/sysconfig/synapse # Can be used to e.g. set SYNAPSE_CACHE_FACTOR
  16. [Install]
  17. WantedBy=multi-user.target