Skip to content

Instantly share code, notes, and snippets.

@akhiljalagam
Created June 14, 2019 13:00
Show Gist options
  • Save akhiljalagam/b2fa259d0e4325148d2e37b55e895524 to your computer and use it in GitHub Desktop.
Save akhiljalagam/b2fa259d0e4325148d2e37b55e895524 to your computer and use it in GitHub Desktop.
systemd service unit for matrix synapse server 1.0.0 stable release. Tweak with your own config.
[Unit]
Description=Synapse Matrix homeserver
After=postgresql-9.6.service
[Service]
Type=simple
WorkingDirectory=/root/synapse/env
ExecStart=/root/synapse/env/bin/python -m synapse.app.homeserver --config-path=/root/synapse/env/bin/homeserver.yaml
ExecStop=/root/synapse/env/bin/synctl stop /root/synapse/env/bin/homeserver.yaml
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment