matrix-synapse.service 769 B

123456789101112131415161718192021
  1. [Unit]
  2. Description=Synapse master
  3. # This service should be restarted when the synapse target is restarted.
  4. PartOf=matrix-synapse.target
  5. [Service]
  6. Type=notify
  7. NotifyAccess=main
  8. User=matrix-synapse
  9. WorkingDirectory=/var/lib/matrix-synapse
  10. EnvironmentFile=/etc/default/matrix-synapse
  11. 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
  12. 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/
  13. ExecReload=/bin/kill -HUP $MAINPID
  14. Restart=always
  15. RestartSec=3
  16. SyslogIdentifier=matrix-synapse
  17. [Install]
  18. WantedBy=matrix-synapse.target