diff options
author | Botond Hende <nettingman@gmail.com> | 2024-08-22 21:26:34 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-08-22 21:26:34 +0200 |
commit | 7c5afe8a171a6b1150e7c690fcff50d072201a24 (patch) | |
tree | 1ea7ecc0d22d2fd1bde1699e157d4849dc52b8c5 /ethercalc.service |
Diffstat (limited to 'ethercalc.service')
-rw-r--r-- | ethercalc.service | 23 |
1 files changed, 23 insertions, 0 deletions
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 |