summaryrefslogtreecommitdiff
path: root/packages/net/synapse/files/systemd/synapse.service
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net/synapse/files/systemd/synapse.service')
-rw-r--r--packages/net/synapse/files/systemd/synapse.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/net/synapse/files/systemd/synapse.service b/packages/net/synapse/files/systemd/synapse.service
new file mode 100644
index 0000000..8f575ab
--- /dev/null
+++ b/packages/net/synapse/files/systemd/synapse.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Synapse Matrix homeserver
+
+[Service]
+Type=simple
+Restart=on-abort
+
+User=synapse
+Group=synapse
+
+WorkingDirectory=/var/lib/synapse
+ExecStart=/usr/bin/python2.7 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml
+ExecStop=/usr/bin/synctl stop /etc/synapse/homeserver.yaml
+
+[Install]
+WantedBy=multi-user.target
+