matrix-synapse.service 880 B

123456789101112131415161718192021222324252627282930313233
  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=notify
  16. NotifyAccess=main
  17. ExecReload=/bin/kill -HUP $MAINPID
  18. Restart=on-abort
  19. User=synapse
  20. Group=nogroup
  21. WorkingDirectory=/opt/synapse
  22. ExecStart=/opt/synapse/env/bin/python -m synapse.app.homeserver --config-path=/opt/synapse/homeserver.yaml
  23. SyslogIdentifier=matrix-synapse
  24. # adjust the cache factor if necessary
  25. # Environment=SYNAPSE_CACHE_FACTOR=2.0
  26. [Install]
  27. WantedBy=multi-user.target