Browse Source

example systemd file

Richard van der Hoff 5 years ago
parent
commit
4a64a89a68
1 changed files with 21 additions and 0 deletions
  1. 21 0
      matrix-sydent.service

+ 21 - 0
matrix-sydent.service

@@ -0,0 +1,21 @@
+# Example systemd configuration file for sydent. Copy to
+# /etc/systemd/system/matrix-sydent.service, update the paths if necessary,
+# then:
+#
+#    systemctl enable matrix-sydent
+#    systemctl start matrix-sydent
+
+
+[Unit]
+Description="Matrix identity server"
+
+[Service]
+WorkingDirectory=/opt/sydent
+ExecStart=/opt/sydent/env/bin/python -m sydent.sydent
+
+User=sydent
+Group=nogroup
+Restart=always
+
+[Install]
+WantedBy=default.target