summaryrefslogtreecommitdiff
path: root/etherpad.service
diff options
context:
space:
mode:
Diffstat (limited to 'etherpad.service')
-rw-r--r--etherpad.service23
1 files changed, 23 insertions, 0 deletions
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