[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 localhost/etherpad:latest Restart = always [Install] WantedBy = default.target