You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
824 B

  1. [Unit]
  2. Description=Synapse Matrix homeserver
  3. [Service]
  4. Type=notify
  5. User=matrix-synapse
  6. WorkingDirectory=/var/lib/matrix-synapse
  7. 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
  8. 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/
  9. ExecReload=/bin/kill -HUP $MAINPID
  10. Restart=always
  11. RestartSec=3
  12. SyslogIdentifier=matrix-synapse
  13. # The environment file is not shipped by default anymore and the below directive
  14. # is for backwards compatibility only. Please use your homeserver.yaml if
  15. # possible.
  16. EnvironmentFile=-/etc/default/matrix-synapse
  17. [Install]
  18. WantedBy=multi-user.target