From 0804594a614998fd115fb99224183c66af34ecfa Mon Sep 17 00:00:00 2001 From: Pieter Date: Mon, 12 Oct 2020 11:06:56 +0200 Subject: [PATCH] Add systemd example service to docs (#1512) Signed-off-by: Pieter Hollander --- docs/systemd/monolith-example.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/systemd/monolith-example.service diff --git a/docs/systemd/monolith-example.service b/docs/systemd/monolith-example.service new file mode 100644 index 000000000..7dd7755db --- /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