summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-12-25 14:56:03 +0100
committerConrad Kostecki <conikost@gentoo.org>2023-12-25 14:56:03 +0100
commitc8e51359e7627ec908ca3b11ee17f49d8af72981 (patch)
tree55c942b5334c798fafc578235cfec65dd3bfc662 /games-server
parentsys-auth/yubico-piv-tool: add 2.4.2 (diff)
downloadgentoo-c8e51359e7627ec908ca3b11ee17f49d8af72981.tar.gz
gentoo-c8e51359e7627ec908ca3b11ee17f49d8af72981.tar.bz2
gentoo-c8e51359e7627ec908ca3b11ee17f49d8af72981.zip
games-server/bedrock-server: update init script
This fixes the following warning: * OPENRC: unnecessary usage of start_stop_daemon_args found: * --chdir should be replaced with directory="[..]" Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server')
-rw-r--r--games-server/bedrock-server/bedrock-server-1.20.51.01-r1.ebuild (renamed from games-server/bedrock-server/bedrock-server-1.20.51.01.ebuild)2
-rw-r--r--games-server/bedrock-server/files/bedrock-server.initd-r5 (renamed from games-server/bedrock-server/files/bedrock-server.initd-r4)2
2 files changed, 2 insertions, 2 deletions
diff --git a/games-server/bedrock-server/bedrock-server-1.20.51.01.ebuild b/games-server/bedrock-server/bedrock-server-1.20.51.01-r1.ebuild
index 885e6a8334b8..694410ea0565 100644
--- a/games-server/bedrock-server/bedrock-server-1.20.51.01.ebuild
+++ b/games-server/bedrock-server/bedrock-server-1.20.51.01-r1.ebuild
@@ -47,7 +47,7 @@ src_install() {
dodir /opt/bin
dosym ../bedrock-server/bedrock_server /opt/bin/bedrock-server
- newinitd "${FILESDIR}"/bedrock-server.initd-r4 bedrock-server
+ newinitd "${FILESDIR}"/bedrock-server.initd-r5 bedrock-server
newconfd "${FILESDIR}"/bedrock-server.confd bedrock-server
systemd_newunit "${FILESDIR}"/bedrock-server.service bedrock-server@.service
diff --git a/games-server/bedrock-server/files/bedrock-server.initd-r4 b/games-server/bedrock-server/files/bedrock-server.initd-r5
index 2bc351490e96..40946197b7c5 100644
--- a/games-server/bedrock-server/files/bedrock-server.initd-r4
+++ b/games-server/bedrock-server/files/bedrock-server.initd-r5
@@ -12,10 +12,10 @@ bedrock_command="/opt/bin/bedrock-server"
bedrock_path="/var/lib/bedrock-server"
bedrock_path_data="/opt/bedrock-server"
bedrock_path_instance="${bedrock_path}/${instance}"
+directory="${bedrock_path_instance}/"
dtach_tmpfile="$(mktemp -u)"
name="Minecraft Bedrock server (${instance})"
pidfile="/run/bedrock-server.${instance}.pid"
-start_stop_daemon_args="--chdir ${bedrock_path_instance}"
description_attach="Attaches to the session (interactive console) of the Minecraft Bedrock server"
extra_started_commands="attach"