minecraft-server-fabric/minecraftd-diag

8 lines
406 B
Plaintext
Raw Normal View History

2015-07-03 10:16:00 -07:00
#!/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"