matrix-synapse.service 623 B

12345678910111213141516
  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. [Install]
  14. WantedBy=multi-user.target