diff options
author | Botond Hende <nettingman@gmail.com> | 2024-04-22 21:47:48 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-04-22 21:47:48 +0200 |
commit | 65e5563ac03099719bb5cc5a3b8df38a909c5890 (patch) | |
tree | fc0d83378aa9e9230e3f3b1a7b9e51949403f458 /etherpad.service |
initial commit
Diffstat (limited to 'etherpad.service')
-rw-r--r-- | etherpad.service | 23 |
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 |