minecraft-server-fabric/minecraftd-diag
Philip Abernethy 2c972cc099 Initial commit
2015-07-03 19:16:00 +02:00

8 lines
406 B
Bash

#!/bin/bash
. /etc/conf.d/minecraft || echo "can't source /etc/conf.d/minecraft"
cd $_SRVDIR
echo "If the next command executes correctly, then something is wrong with screen."
su minecraft -c "PATH=/opt/java/bin/:/usr/bin/:$PATH java -Xmx${MAXHEAP} -Xms${MINHEAP} -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=${THREADS} -XX:+AggressiveOpts -jar ${_SRVDIR}/${SERVERJAR} nogui"