matrix-synapse.service 824 B

123456789101112131415161718192021
  1. [Unit]
  2. Description=Synapse Matrix homeserver
  3. [Service]
  4. Type=notify
  5. User=matrix-synapse
  6. WorkingDirectory=/var/lib/matrix-synapse
  7. ExecStartPre=/opt/venvs/matrix-synapse/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/ --generate-keys
  8. ExecStart=/opt/venvs/matrix-synapse/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/
  9. ExecReload=/bin/kill -HUP $MAINPID
  10. Restart=always
  11. RestartSec=3
  12. SyslogIdentifier=matrix-synapse
  13. # The environment file is not shipped by default anymore and the below directive
  14. # is for backwards compatibility only. Please use your homeserver.yaml if
  15. # possible.
  16. EnvironmentFile=-/etc/default/matrix-synapse
  17. [Install]
  18. WantedBy=multi-user.target