1
0

matrix-synapse.service 796 B

12345678910111213141516171819202122232425262728293031
  1. # Example systemd configuration file for synapse. Copy into
  2. # /etc/systemd/system/, update the paths if necessary, then:
  3. #
  4. # systemctl enable matrix-synapse
  5. # systemctl start matrix-synapse
  6. #
  7. # This assumes that Synapse has been installed in a virtualenv in
  8. # /opt/synapse/env.
  9. #
  10. # **NOTE:** This is an example service file that may change in the future. If you
  11. # wish to use this please copy rather than symlink it.
  12. [Unit]
  13. Description=Synapse Matrix homeserver
  14. [Service]
  15. Type=simple
  16. Restart=on-abort
  17. User=synapse
  18. Group=nogroup
  19. WorkingDirectory=/opt/synapse
  20. ExecStart=/opt/synapse/env/bin/python -m synapse.app.homeserver --config-path=/opt/synapse/homeserver.yaml
  21. # adjust the cache factor if necessary
  22. # Environment=SYNAPSE_CACHE_FACTOR=2.0
  23. [Install]
  24. WantedBy=multi-user.target