matrix-synapse-worker@.service 843 B

12345678910111213141516171819202122232425
  1. [Unit]
  2. Description=Synapse %i
  3. AssertPathExists=/etc/matrix-synapse/workers/%i.yaml
  4. # This service should be restarted when the synapse target is restarted.
  5. PartOf=matrix-synapse.target
  6. # if this is started at the same time as the main, let the main process start
  7. # first, to initialise the database schema.
  8. After=matrix-synapse.service
  9. [Service]
  10. Type=notify
  11. NotifyAccess=main
  12. User=matrix-synapse
  13. WorkingDirectory=/var/lib/matrix-synapse
  14. EnvironmentFile=/etc/default/matrix-synapse
  15. ExecStart=/opt/venvs/matrix-synapse/bin/python -m synapse.app.generic_worker --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/ --config-path=/etc/matrix-synapse/workers/%i.yaml
  16. ExecReload=/bin/kill -HUP $MAINPID
  17. Restart=always
  18. RestartSec=3
  19. SyslogIdentifier=matrix-synapse-%i
  20. [Install]
  21. WantedBy=matrix-synapse.target