summaryrefslogtreecommitdiff
path: root/ethercalc.service
blob: 85da3271e4be1c043b57606a38f00af39c8ff858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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