summaryrefslogtreecommitdiff
path: root/etherpad.service
blob: 91a9bee187c2b5c8fd3ff3e4a979dd3651a0c4b0 (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 = Etherpad container
After = network.target
ConditionPathExists = /srv/etherpad

[Service]
Type = simple
ExecStartPre = -/usr/bin/podman stop etherpad

User = etherpad
Group = etherpad

ExecStart = /usr/bin/podman run \
	--rm \
	--name etherpad \
	--net host \
	-v /srv/etherpad/var:/opt/etherpad/var
	localhost/etherpad:latest

Restart = always

[Install]
WantedBy = default.target