MineOS restart start.sh problem

Discussion in 'Systems Administration' started by oPqnda, Aug 28, 2016.

Thread Status:
Not open for further replies.
  1. So I use MineOS to run my MC servers. The MineOS runs of a VPS and I want to restart the servers by using an start.sh with MineOS. So when my SG server finishes, it's suppose to restart. Now the server stops but doesn't start back up.. as I want it to. I've used some start.sh's and none of them seem to work. And I was wondering if anyone knows any possible good start.sh's that will work with MineOS? So then when the SG game ends the server stops and the start.sh starts the server back up again.

    Thank you!
     
  2. I don't understand you what u need.
     
  3. Okay. So I am looking for a start.sh that I can use on my server. Because when I the Survival Games plugin I've got (bungeecord) The server stops after the game has finished but doesn't start back up meaning I have to start the server manually through the server console and I don't want to do that. So I am looking for a start.sh that works and starts the server up automatically.
     
  4. Are plugin configuration has 'which command to use when they finish' ?
     
  5. Try this

    Code (Text):
    #!/bin/sh
    while true
    do
    java -jar -Xms1024M -Xmx1024M -jar Spigot.jar
    sleep 5
    done
    Configure depend on what you need. RAM, name on .jar file and etc, follow code.
     
  6. Thank you!
     
Thread Status:
Not open for further replies.