Jump to content

norusk

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by norusk

  1. Hello everybody, I'm currently switching my bukkit installation into minecraftforge (linux). Is there a tutorial/manual to write a startscript to automate server restart? I'm searching in the wiki for commandline arguments for the forgeserver.jar - but found nothing. I would like to separate all config files into config-folder . My old startscript: #!/bin/sh # Working Directory (where the server.jar is located) WORKING_DIR=/opt/minecraft # Server binary filename SERVER_BINARY=server.jar # Server Properties # Allows you to define the config file used in starting the server. # The default config file is "server.properties" CONFIG_FILE=/opt/minecraft/config/server.properties # Bukkit Config File # Allows you to define the bukkit.yml settings file used during startup. # The default bukkit config file is bukkit.yml BUKKIT_CONFIG_FILE=/opt/minecraft/config/bukkit.yml # Plugin Directory # Allows you to define the plugins directory to use when starting the server. # The path should be relative to the location of your current location in your system. # The default plugins directory is "plugins/" PLUGIN_DIR=/opt/minecraft/mods # World Directory # Allows you to define the folder/directory containing your worlds. # All worlds will be loaded and stored here. # The default is located in bukkit.yml WORLD_DIR=/opt/minecraft/world # switch to workingdirectory cd "$WORKING_DIR" # Start / Restart echo "Starting Minecraft Server" while true do java -Xms1024M -Xmx2048M -jar $SERVER_BINARY -o true -c $CONFIG_FILE -b $BUKKIT_CONFIG_FILE -P $PLUGIN_DIR echo "Rebooting in 5 Seconds" sleep 5 echo "Rebooting now!" done
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.