13 lines
416 B
13 lines
416 B
# Minecraft upstart
|
|
# this script will start/stop Minecraft
|
|
description "Minecraft Server"
|
|
version "1.0"
|
|
author "Marco Ceppi"
|
|
|
|
env CPU_COUNT=8
|
|
env JAVA_ARGS="-Xmx1024M -Xms1024M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts"
|
|
env LOG="/var/log/minecraft_server.log"
|
|
|
|
chdir /opt/apps/minecraft
|
|
exec java $JAVA_ARGS -XX:ParallelGCThreads=$CPU_COUNT -jar minecraft_server.jar nogui >> $LOG 2>&1
|
|
|