13 lines
416 B

12 years ago
  1. # Minecraft upstart
  2. # this script will start/stop Minecraft
  3. description "Minecraft Server"
  4. version "1.0"
  5. author "Marco Ceppi"
  6. env CPU_COUNT=8
  7. env JAVA_ARGS="-Xmx1024M -Xms1024M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts"
  8. env LOG="/var/log/minecraft_server.log"
  9. chdir /opt/apps/minecraft
  10. exec java $JAVA_ARGS -XX:ParallelGCThreads=$CPU_COUNT -jar minecraft_server.jar nogui >> $LOG 2>&1