aboutsummaryrefslogtreecommitdiff
path: root/docs/systemd/monolith-example.service
diff options
context:
space:
mode:
Diffstat (limited to 'docs/systemd/monolith-example.service')
-rw-r--r--docs/systemd/monolith-example.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/systemd/monolith-example.service b/docs/systemd/monolith-example.service
new file mode 100644
index 00000000..7dd7755d
--- /dev/null
+++ b/docs/systemd/monolith-example.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Dendrite (Matrix Homeserver)
+After=syslog.target
+After=network.target
+After=postgresql.service
+
+[Service]
+RestartSec=2s
+Type=simple
+User=dendrite
+Group=dendrite
+WorkingDirectory=/opt/dendrite/
+ExecStart=/opt/dendrite/bin/dendrite-monolith-server
+Restart=always
+
+[Install]
+WantedBy=multi-user.target