matrix-synapse.service 1021 B

123456789101112131415161718192021222324252627282930313233343536
  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 by a user named
  8. # synapse.
  9. #
  10. # This assumes that Synapse has been installed in a virtualenv in
  11. # the user's home directory: `/home/synapse/synapse/env`.
  12. #
  13. # **NOTE:** This is an example service file that may change in the future. If you
  14. # wish to use this please copy rather than symlink it.
  15. [Unit]
  16. Description=Synapse Matrix homeserver
  17. [Service]
  18. Type=notify
  19. NotifyAccess=main
  20. ExecReload=/bin/kill -HUP $MAINPID
  21. Restart=on-abort
  22. User=synapse
  23. Group=nogroup
  24. WorkingDirectory=/home/synapse/synapse
  25. ExecStart=/home/synapse/synapse/env/bin/python -m synapse.app.homeserver --config-path=/home/synapse/synapse/homeserver.yaml
  26. SyslogIdentifier=matrix-synapse
  27. # adjust the cache factor if necessary
  28. # Environment=SYNAPSE_CACHE_FACTOR=2.0
  29. [Install]
  30. WantedBy=multi-user.target