summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2021-12-13 20:02:38 +0100
committerConrad Kostecki <conikost@gentoo.org>2021-12-13 22:32:30 +0100
commite54bbe3e6366a6b14a6b99c4b4aef900d8705727 (patch)
tree88da92a682e7f402124a5a626b03112896ca3749 /games-server/minecraft-server
parentdev-perl/XML-LibXSLT: remove unused patch(es) (diff)
downloadgentoo-e54bbe3e6366a6b14a6b99c4b4aef900d8705727.tar.gz
gentoo-e54bbe3e6366a6b14a6b99c4b4aef900d8705727.tar.bz2
gentoo-e54bbe3e6366a6b14a6b99c4b4aef900d8705727.zip
games-server/minecraft-server: remove unused file
Closes: https://github.com/gentoo/gentoo/pull/23290 Package-Manager: Portage-3.0.29, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server/minecraft-server')
-rw-r--r--games-server/minecraft-server/files/minecraft-server.initd-r462
1 files changed, 0 insertions, 62 deletions
diff --git a/games-server/minecraft-server/files/minecraft-server.initd-r4 b/games-server/minecraft-server/files/minecraft-server.initd-r4
deleted file mode 100644
index e81337a7d19f..000000000000
--- a/games-server/minecraft-server/files/minecraft-server.initd-r4
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-if [ "${SVCNAME}" = "minecraft-server" ]; then
- instance="main"
-else
- instance="${SVCNAME#minecraft-server.}"
-fi
-
-dtach_tmpfile="$(mktemp -u)"
-minecraft_command="/usr/bin/minecraft-server"
-minecraft_logs="/var/log/minecraft-server"
-minecraft_logs_instance="${minecraft_logs}/${instance}"
-minecraft_path="/var/lib/minecraft-server"
-minecraft_path_instance="${minecraft_path}/${instance}"
-name="Minecraft Server (World: ${instance})"
-pidfile="/run/minecraft-server.${instance}.pid"
-start_stop_daemon_args="--chdir ${minecraft_path_instance} --env JAVA_OPTS='${MINECRAFT_OPTS}'"
-
-description_attach="Attaches to the session (interactive console) of the Minecraft server"
-extra_started_commands="attach"
-
-command="/usr/bin/dtach"
-command_background="true"
-command_args="-N ${dtach_tmpfile} ${minecraft_command}"
-command_group="minecraft"
-command_user="minecraft"
-
-depend() {
- use net
-}
-
-start_pre() {
- checkpath -d -o "${command_user}:${command_group}" -q "${minecraft_path}" "${minecraft_path_instance}"
-
- checkpath -f -o "${command_user}:${command_group}" -q "${minecraft_path_instance}"/eula.txt
- echo "eula=true" > "${minecraft_path_instance}"/eula.txt
-
- checkpath -d -o "${command_user}:${command_group}" -q "${minecraft_logs}" "${minecraft_logs_instance}"
-
- if [ ! -L "${minecraft_path_instance}"/logs ]; then
- cd "${minecraft_path_instance}" && ln -s ../../../log/minecraft-server/"${instance}" logs
- fi
-
- if [ -z "${MINECRAFT_OPTS}" ]; then
- eerror "You must define 'MINECRAFT_OPTS' in '/etc/conf.d/${SVCNAME}'!"
- return 1
- fi
-}
-
-attach() {
- pidnumber="$(cat ${pidfile})"
- dtach_tmpfile="$(cat /proc/${pidnumber}/cmdline | tr '\0' ' ' | awk '{print $3}')"
-
- if [ -S "${dtach_tmpfile}" ]; then
- eval "${command}" -a "${dtach_tmpfile}" "${DTACH_OPTS}"
- else
- eerror "The determined socket file for dtach could not be found!"
- eerror "Did the process crash?"
- fi
-}