blob: b8a5b4c1874aad15e38e995f390e90252dec251b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[Unit]
Description = PaperMC container
After = network.target
ConditionPathExists = /srv/minecraft
[Service]
Type = simple
ExecStartPre = -/usr/bin/podman stop papermc
ExecStart = /usr/bin/podman run \
--rm \
--name papermc \
--net host \
-v /srv/minecraft/world:/opt/minecraft/world \
-p 23673:23673/tcp \
papermc
[Install]
WantedBy = default.target
|