synapse.service 571 B

1234567891011121314151617
  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. EnvironmentFile=-/etc/sysconfig/synapse
  11. WorkingDirectory=/var/lib/synapse
  12. ExecStart=/usr/bin/python2.7 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml --log-config=/etc/synapse/log_config.yaml
  13. [Install]
  14. WantedBy=multi-user.target