diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2020-11-03 08:43:47 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2020-11-03 09:20:54 +0100 |
commit | 887aff193f301d735bae324d05a10db7b137464e (patch) | |
tree | cf84eb65f49b6698f0747e96ad3e3deb8f53e723 /games-server/bedrock-server/files | |
parent | profiles/package.mask: mask dev-lang/helium and dev-haskell/lvmlib (diff) | |
download | gentoo-887aff193f301d735bae324d05a10db7b137464e.tar.gz gentoo-887aff193f301d735bae324d05a10db7b137464e.tar.bz2 gentoo-887aff193f301d735bae324d05a10db7b137464e.zip |
games-server/bedrock-server: drop old version
Package-Manager: Portage-3.0.8, Repoman-3.0.2
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.initd-r1 | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/games-server/bedrock-server/files/bedrock-server.initd-r1 b/games-server/bedrock-server/files/bedrock-server.initd-r1 deleted file mode 100644 index 5f71b80edb21..000000000000 --- a/games-server/bedrock-server/files/bedrock-server.initd-r1 +++ /dev/null @@ -1,47 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -if [ "${SVCNAME}" = "bedrock-server" ]; then - instance="main" -else - instance="${SVCNAME#*.}" -fi - -bedrock_command="/opt/bin/bedrock-server" -bedrock_path="/var/lib/bedrock-server" -bedrock_path_data="/opt/bedrock-server" -bedrock_path_instance="${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}" - -command="/usr/bin/dtach" -command_background="true" -command_args="-N ${dtach_tmpfile} ${bedrock_command}" -command_group="bedrock" -command_user="bedrock" - -depend() { - use net -} - -start_pre() { - checkpath -d -o "${command_user}:${command_group}" -q "${bedrock_path}" "${bedrock_path_instance}" - - local bedrock_configs=( "permissions.json" "server.properties" "whitelist.json" ) - for bedrock_config in ${bedrock_configs[@]}; do - if [ ! -f "${bedrock_path_instance}/${bedrock_config}" ]; then - cp "${bedrock_path_data}/${bedrock_config}" "${bedrock_path_instance}" - checkpath -f -o "${command_user}:${command_group}" -q "${bedrock_path_instance}/${bedrock_config}" - fi - done - - local bedrock_ressources=( "behavior_packs" "definitions" "resource_packs" "structures" ) - for bedrock_ressource in ${bedrock_ressources[@]}; do - if [ ! -L "${bedrock_path_instance}/${bedrock_ressource}" ]; then - ln -sf "${bedrock_path_data}/${bedrock_ressource}" "${bedrock_path_instance}" - fi - done -} |