matrix-synapse.service 813 B

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