From 7c5afe8a171a6b1150e7c690fcff50d072201a24 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Thu, 22 Aug 2024 21:26:34 +0200 Subject: initial commit --- ethercalc.service | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ethercalc.service (limited to 'ethercalc.service') diff --git a/ethercalc.service b/ethercalc.service new file mode 100644 index 0000000..85da327 --- /dev/null +++ b/ethercalc.service @@ -0,0 +1,23 @@ +[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 -- cgit v1.2.3-70-g09d2