matrix-synapse-worker@.service 638 B

1234567891011121314151617181920
  1. [Unit]
  2. Description=Synapse %i
  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. 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
  12. ExecReload=/bin/kill -HUP $MAINPID
  13. Restart=always
  14. RestartSec=3
  15. SyslogIdentifier=matrix-synapse-%i
  16. [Install]
  17. WantedBy=matrix-synapse.target