summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2018-09-05 23:59:20 +0200
committerMichał Górny <mgorny@gentoo.org>2018-09-15 22:09:59 +0200
commit66628111d13656748437c4043eeaf518f123c6d2 (patch)
tree27e4d8d3b59f88eb26767d30537c645bfa30d789 /games-server/minecraft-server/files
parentgames-server/minecraft-server: bump to version 1.13.1 (diff)
downloadgentoo-66628111d13656748437c4043eeaf518f123c6d2.tar.gz
gentoo-66628111d13656748437c4043eeaf518f123c6d2.tar.bz2
gentoo-66628111d13656748437c4043eeaf518f123c6d2.zip
games-server/minecraft-server: drop old version
Bug: https://bugs.gentoo.org/665316 Package-Manager: Portage-2.3.49, Repoman-2.3.10 Closes: https://github.com/gentoo/gentoo/pull/9789
Diffstat (limited to 'games-server/minecraft-server/files')
-rw-r--r--games-server/minecraft-server/files/minecraft-server-r1.initd47
1 files changed, 0 insertions, 47 deletions
diff --git a/games-server/minecraft-server/files/minecraft-server-r1.initd b/games-server/minecraft-server/files/minecraft-server-r1.initd
deleted file mode 100644
index 872885ecd643..000000000000
--- a/games-server/minecraft-server/files/minecraft-server-r1.initd
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-if [ "${SVCNAME}" = "minecraft-server" ]; then
- instance="main"
-else
- instance="${SVCNAME#minecraft-server.}"
-fi
-
-minecraft_command="/usr/bin/minecraft-server"
-minecraft_logs="/var/log/minecraft-server"
-minecraft_path="/var/lib/minecraft-server/${instance}"
-name="Minecraft Server (World: ${instance})"
-pidfile="/run/minecraft-server.${instance}.pid"
-screen_name="minecraft-server.${instance}"
-start_stop_daemon_args="--chdir ${minecraft_path} --env JAVA_OPTS=\"${MINECRAFT_OPTS}\""
-
-command="screen"
-command_args="-DmUS ${screen_name} ${minecraft_command}"
-command_background="true"
-command_group="minecraft"
-command_user="minecraft"
-
-depend() {
- use net
-}
-
-start_pre() {
- checkpath -d -o "${command_user}:${command_group}" -q "${minecraft_path}"
-
- checkpath -f -o "${command_user}:${command_group}" -q "${minecraft_path}"/eula.txt
- echo "eula=true" > "${minecraft_path}"/eula.txt
-
- checkpath -d -o "${command_user}:${command_group}" -q "${minecraft_logs}"/"${instance}"
-
- if [ ! -L "${minecraft_path}"/logs ]; then
- cd "${minecraft_path}" && ln -s ../../../log/minecraft-server/"${instance}" logs
- fi
-
- if [ -z ${MINECRAFT_OPTS} ]; then
- eerror "You must define MINECRAFT_OPTS in /etc/conf.d/minecraft.${SVCNAME}!"
- return 1
- fi
-
- return 0
-}