matrix-synapse-worker@.service 887 B

1234567891011121314151617181920212223242526
  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. ReloadPropagatedFrom=matrix-synapse.target
  7. # if this is started at the same time as the main, let the main process start
  8. # first, to initialise the database schema.
  9. After=matrix-synapse.service
  10. [Service]
  11. Type=notify
  12. NotifyAccess=main
  13. User=matrix-synapse
  14. WorkingDirectory=/var/lib/matrix-synapse
  15. EnvironmentFile=-/etc/default/matrix-synapse
  16. 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
  17. ExecReload=/bin/kill -HUP $MAINPID
  18. Restart=always
  19. RestartSec=3
  20. SyslogIdentifier=matrix-synapse-%i
  21. [Install]
  22. WantedBy=matrix-synapse.target