Advertisement
masa-

Simple server startup script with restart after crash

Jul 11th, 2013
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while true
  4. do
  5.     java -server -Xms256M -Xmx1024M -XX:+UseConcMarkSweepGC -jar minecraft_server_snapshot.jar nogui
  6.  
  7.     if [ "$?" -eq "0" ]
  8.     then
  9.         break
  10.     fi
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement