matrix-synapse.service 655 B

1234567891011121314151617
  1. [Unit]
  2. Description=Synapse Matrix homeserver
  3. [Service]
  4. Type=simple
  5. User=matrix-synapse
  6. WorkingDirectory=/var/lib/matrix-synapse
  7. EnvironmentFile=/etc/default/matrix-synapse
  8. 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
  9. 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/
  10. ExecReload=/bin/kill -HUP $MAINPID
  11. Restart=always
  12. RestartSec=3
  13. SyslogIdentifier=matrix-synapse
  14. [Install]
  15. WantedBy=multi-user.target