summaryrefslogtreecommitdiff
path: root/etherpad.service
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-04-22 21:47:48 +0200
committerBotond Hende <nettingman@gmail.com>2024-04-22 21:47:48 +0200
commit65e5563ac03099719bb5cc5a3b8df38a909c5890 (patch)
treefc0d83378aa9e9230e3f3b1a7b9e51949403f458 /etherpad.service
initial commit
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