[URGENT] VPS- script-auto restart all my servers

Discussion in 'Systems Administration' started by gamerstar62, Feb 20, 2016.

  1. So i set it in CHMOD 700? And I think that not the same script to start and stop my Proxy?

    Thank's for your help ;)
    @Clinton You have this type of script?

    Edit:

    Maybe we can add a "end" command to this script?

    Edit2:

    I add a crontab for restart my BungeeCord when my vps restart
    Code (Text):
    @reboot sh /home/BC-BattleCube/Proxy/start.sh
    I hope this will work :D
     
    #21 gamerstar62, Feb 21, 2016
    Last edited: Feb 21, 2016
  2. @Clinton

    Hello,

    I have a new problem...when i want to restart my server with /restart in-game the command stop the server but she doesn't restart it, that the same thing for my hungergames servers, when the game his ended the servers doesn't restart...
    I give you my start.sh, they are locate in my servers folders:
    Code (Text):
    #!/bin/sh
    while true
    do
    java -jar -Xms1024M -Xmx1500M -jar custom.jar
    sleep 5
    done
    Thank's for your help ;)
     
  3. That's because you're automatically restarting the server when it stops. I don't know why you're doing that since it makes keeping the server off impossible without killing that loop.
     
  4. Hello,

    I don't really understant every things but when my HungerGames ended he restart with start.sh, i don't know if screen is culprit...

    Thank you
     
  5. Yes your start.sh is the problem.
     
  6. Hello,

    I see, i have a loop so i must change my script but what kind of script, have you got that type of script ?

    Thank you
     
  7. Code (Text):
    java -jar -Xms1024M -Xmx1500M -jar custom.jar
     
  8. I Will try it ;)

    Thank you
     
  9. Hello,

    I set all my start.sh with this script
    Code (Text):
    java -jar -Xms1024M -Xmx1500M -jar custom.jar
    But when my servers whant to restart when they crash or when they restart, that doesn't work, I think the command in my spigot.yml is the problem (./start.sh) or maybe when the server crash the screen where delete so he can't run the script? Do you think, I need to set ./go.sh start Lobby in my spigot.yml for restart my lobby (that an exemple)?

    Thank you for your help ;)
    @Clinton
     
    #29 gamerstar62, Mar 13, 2016
    Last edited: Mar 13, 2016
  10. Friend voices have a shell scritp to restart a match of hg when finishing this is very important to me :)
     
  11. Necropost...