matrix-synapse-worker@.service 690 B

1234567891011121314151617181920
  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. [Service]
  7. Type=notify
  8. NotifyAccess=main
  9. User=matrix-synapse
  10. WorkingDirectory=/var/lib/matrix-synapse
  11. EnvironmentFile=/etc/default/matrix-synapse
  12. 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
  13. ExecReload=/bin/kill -HUP $MAINPID
  14. Restart=always
  15. RestartSec=3
  16. SyslogIdentifier=matrix-synapse-%i
  17. [Install]
  18. WantedBy=matrix-synapse.target