summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-02-28 01:41:10 +0100
committerConrad Kostecki <conikost@gentoo.org>2023-02-28 01:42:44 +0100
commitec91a35d8e775b39fb00396eebf4e5c937812261 (patch)
tree0dd4a0d6dd6dacc363bfe248e744976c2bcf1c43 /games-server/bedrock-server/files
parentwww-servers/nginx-unit: Support nginx-unit user and group (diff)
downloadgentoo-ec91a35d8e775b39fb00396eebf4e5c937812261.tar.gz
gentoo-ec91a35d8e775b39fb00396eebf4e5c937812261.tar.bz2
gentoo-ec91a35d8e775b39fb00396eebf4e5c937812261.zip
games-server/bedrock-server: add 1.19.63.01
Closes: https://bugs.gentoo.org/895492 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server/bedrock-server/files')
-rw-r--r--games-server/bedrock-server/files/bedrock-server.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/games-server/bedrock-server/files/bedrock-server.service b/games-server/bedrock-server/files/bedrock-server.service
new file mode 100644
index 000000000000..043f2d9e04b1
--- /dev/null
+++ b/games-server/bedrock-server/files/bedrock-server.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=Bedrock Server (World: %I)
+After=network.target
+
+[Service]
+User=bedrock
+Group=bedrock
+WorkingDirectory=-/var/lib/bedrock-server/%I
+PIDFile=/run/bedrock-server.%I.pid
+ExecStartPre=!/bin/mkdir -p /var/lib/bedrock-server/%I
+ExecStartPre=!/bin/cp -n /opt/bedrock-server/allowlist.json /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/cp -n /opt/bedrock-server/permissions.json /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/cp -n /opt/bedrock-server/server.properties /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/ln -sf /opt/bedrock-server/behavior_packs /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/ln -sf /opt/bedrock-server/definitions /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/ln -sf /opt/bedrock-server/resource_packs /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/ln -sf /opt/bedrock-server/structures /var/lib/bedrock-server/%I/
+ExecStartPre=!/bin/chown -R bedrock:bedrock /var/lib/bedrock-server/%I
+ExecStart=/bin/sh -c '/usr/bin/dtach -N $(mktemp -u) /opt/bin/bedrock-server'
+
+[Install]
+WantedBy=multi-user.target