1. Guest, as per the stickied thread, this forum has not been in use since 2014. All bugs and feature requests should be posted to JIRA.

Bug Server auto restarts with screen -dm in start script, but not without

Discussion in 'Bugs & Feature Requests' started by Meow, Mar 1, 2013.

  1. I just found out that the /restart only works when the start.sh script includes "screen -dm" in front of java -Xms blah blah -jar spigot.jar, but not without. And the starting process is a little different.

    To start the server and enable the restart function. You gotta do the following
    cd (server folder)
    screen -x

    Could you please enable the function with normal screen ./start.sh?
  2. I just use something like this:
    Code (Text):
    while true
    //startup code
    echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
    echo "Rebooting in:"
    for i in 5 4 3 2 1
    echo "$i..."
    sleep 1
    echo "Rebooting now!"
    Someone posted this on here a while ago (can't remember who) and it works great. Start with screen ./start.sh and to auto reboot just do /stop
  3. Yeah it's great to use :) I reported this because when server crashed, only the screen -dm will work.
  4. SuperSpyTX


    Did you try using just -m?