summaryrefslogtreecommitdiff
path: root/games-server/minecraft-server/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-02-02 01:39:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-02-02 01:39:05 +0000
commitfcc5224904648a8e6eb528d7603154160a20022f (patch)
tree3bfce096b38a9cea8eed13fc70c1526c456e9abd /games-server/minecraft-server/files
parent2fd57282f0262ca084e05b0f2c63fbada395d02b (diff)
gentoo resync : 02.02.2022
Diffstat (limited to 'games-server/minecraft-server/files')
-rw-r--r--games-server/minecraft-server/files/log4j2_112-116.xml28
-rw-r--r--games-server/minecraft-server/files/minecraft-server.initd-r667
-rw-r--r--games-server/minecraft-server/files/minecraft-server.service-r117
3 files changed, 0 insertions, 112 deletions
diff --git a/games-server/minecraft-server/files/log4j2_112-116.xml b/games-server/minecraft-server/files/log4j2_112-116.xml
deleted file mode 100644
index 569223572f64..000000000000
--- a/games-server/minecraft-server/files/log4j2_112-116.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="WARN">
- <Appenders>
- <Console name="SysOut" target="SYSTEM_OUT">
- <PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg{nolookups}%n" />
- </Console>
- <Queue name="ServerGuiConsole">
- <PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg{nolookups}%n" />
- </Queue>
- <RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
- <PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg{nolookups}%n" />
- <Policies>
- <TimeBasedTriggeringPolicy />
- <OnStartupTriggeringPolicy />
- </Policies>
- </RollingRandomAccessFile>
- </Appenders>
- <Loggers>
- <Root level="info">
- <filters>
- <MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
- </filters>
- <AppenderRef ref="SysOut"/>
- <AppenderRef ref="File"/>
- <AppenderRef ref="ServerGuiConsole"/>
- </Root>
- </Loggers>
-</Configuration>
diff --git a/games-server/minecraft-server/files/minecraft-server.initd-r6 b/games-server/minecraft-server/files/minecraft-server.initd-r6
deleted file mode 100644
index dc4ecc84a997..000000000000
--- a/games-server/minecraft-server/files/minecraft-server.initd-r6
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2021 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_log4j="log4j2_112-116.xml"
-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}"
-
- if [ ! -L "${minecraft_path_instance}/${minecraft_log4j}" ]; then
- ln -s ../../../../usr/share/minecraft-server/"${minecraft_log4j}" "${minecraft_path_instance}"
- fi
-
- 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
-}
diff --git a/games-server/minecraft-server/files/minecraft-server.service-r1 b/games-server/minecraft-server/files/minecraft-server.service-r1
deleted file mode 100644
index fac26368a043..000000000000
--- a/games-server/minecraft-server/files/minecraft-server.service-r1
+++ /dev/null
@@ -1,17 +0,0 @@
-[Unit]
-Description=Minecraft Server (World: %I)
-After=network.target
-
-[Service]
-User=minecraft
-Group=minecraft
-WorkingDirectory=-/var/lib/minecraft-server/%I
-PIDFile=/run/minecraft-server.%I.pid
-ExecStartPre=!/bin/mkdir -p /var/lib/minecraft-server/%I
-ExecStartPre=!/bin/chown -R minecraft:minecraft /var/lib/minecraft-server/%I
-ExecStartPre=!/bin/ln -s /usr/share/minecraft-server/log4j2_112-116.xml /var/lib/minecraft-server/%I
-ExecStartPre=/bin/sh -c 'echo "eula=true" > /var/lib/minecraft-server/%I/eula.txt'
-ExecStart=/bin/sh -c '/usr/bin/dtach -N $(mktemp -u) /usr/bin/minecraft-server'
-
-[Install]
-WantedBy=multi-user.target