From 65e5563ac03099719bb5cc5a3b8df38a909c5890 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Mon, 22 Apr 2024 21:47:48 +0200 Subject: initial commit --- etherpad.service | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 etherpad.service (limited to 'etherpad.service') diff --git a/etherpad.service b/etherpad.service new file mode 100644 index 0000000..98bd828 --- /dev/null +++ b/etherpad.service @@ -0,0 +1,23 @@ +[Unit] +Description = Etherpad container +After = network.target +ConditionPathExists = /srv/etherpad + +[Service] +Type = simple +ExecStartPre = -/usr/bin/podman stop etherpad + +User = etherpad +Group = etherpad + +ExecStart = /usr/bin/podman run \ + --rm \ + --name etherpad \ + --net host \ + -v /srv/etherpad/var:/opt/etherpad/var + etherpad + +Restart = always + +[Install] +WantedBy = default.target -- cgit v1.2.3-70-g09d2