Stopping & Starting all servers

Discussion in 'Server & Community Management' started by nickbbeezy, Aug 10, 2013.

  1. Kinda new to the whole bungeecord network thing. Basically, I'm running 6 different servers on one box and I'm trying to figure out, what would be the best way to stop & start them all at the same time so I don't have to open each screen session and do them individually?
  2. joehot200


    Some sort of script, for example, "", make it go into all the server screens and issue the "restart" command, though im not 100% sure how to do that.
  3. killall java
    • Disagree Disagree x 1
    • Funny Funny x 1
  4. CCT



  5. If you need help setting up mark2, these instructions helped me the first time, the guide is for Ubuntu Server 12.04 LTS
  6. you could create a script that sends "save-all" then "stop" to each server, then have the script wait 10 seconds (or something like that, then have the script call on a start script.
  7. Here is a quick example.

    Code (Text):
    screen -p 0 -S skyblock -X eval 'stuff save-all\015'
    screen -p 0 -S vanilla -X eval 'stuff save-all\015'
    wait 3
    screen -p 0 -S skyblock -X eval 'stuff stop\015'
    screen -p 0 -S vanilla -X eval 'stuff stop\015'
    wait 10
    screen -dmS skyblock java -Xmx4G -server -jar spigot.jar
    screen -dmS vanilla java -Xmx4G -server -jar spigot.jar
  8. nickbbeezy it was a joke... You don't get jokes?
  9. This is just simple enough to use, thank you :'D