summaryrefslogtreecommitdiff
path: root/ethercalc.service
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-08-22 21:26:34 +0200
committerBotond Hende <nettingman@gmail.com>2024-08-22 21:26:34 +0200
commit7c5afe8a171a6b1150e7c690fcff50d072201a24 (patch)
tree1ea7ecc0d22d2fd1bde1699e157d4849dc52b8c5 /ethercalc.service
initial commitHEADmaster
Diffstat (limited to 'ethercalc.service')
-rw-r--r--ethercalc.service23
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