diff options
author | Conrad Kostecki <conrad@kostecki.com> | 2018-07-30 16:07:10 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-08-05 23:47:32 +0200 |
commit | 49828d2b095323265004ce3a9ddca4e25246be43 (patch) | |
tree | c8229bb197922241a83791d3db0d0a1c8627926a /games-server/minecraft-server/files | |
parent | games-server/minecraft-server: version bump to 1.13. (diff) | |
download | gentoo-49828d2b095323265004ce3a9ddca4e25246be43.tar.gz gentoo-49828d2b095323265004ce3a9ddca4e25246be43.tar.bz2 gentoo-49828d2b095323265004ce3a9ddca4e25246be43.zip |
games-server/minecraft-server: drop old version.
Bug: https://bugs.gentoo.org/662434
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'games-server/minecraft-server/files')
-rw-r--r-- | games-server/minecraft-server/files/minecraft-server.initd | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/games-server/minecraft-server/files/minecraft-server.initd b/games-server/minecraft-server/files/minecraft-server.initd deleted file mode 100644 index 630c88871d76..000000000000 --- a/games-server/minecraft-server/files/minecraft-server.initd +++ /dev/null @@ -1,48 +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 - -java="${JAVA_HOME-/usr}"/bin/java -minecraft_jar="/usr/share/games/minecraft-server/minecraft-server.jar" -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}" - -command="screen" -command_args="-DmUS ${screen_name} ${java} ${MINECRAFT_OPTS} -jar ${minecraft_jar}" -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 -} |