[Unit] Description = Ethercalc container After = network.target ConditionPathExists = /srv/ethercalc [Service] Type = simple ExecStartPre = -/usr/bin/podman stop ethercalc User = ethercalc Group = ethercalc ExecStart = /usr/bin/podman run \ --rm \ --name ethercalc \ --net host \ -v /srv/ethercalc:/srv/ethercalc \ localhost/ethercalc:latest Restart = always [Install] WantedBy = default.target