Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4950

Restart on crash is not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • None
    • ubuntu linux 18.04

      screen

    • 1.14.1
    • Yes

      Can you help me out here? What should I do to make /restart command working? I have linux server and launching server via this start.sh:

       

      screen -dmS "minecraft_server" sudo java -Xmx1024M -Xms1024M -jar spigot-1.14.1.jar

      When I try to restart it just stops, but never starts.
      I also tried this:

       

      #!/bin/sh
       sleep 10
       while true
       do
       sudo screen -dmS "minecraft_server" sudo java -Xmx1024M -Xms1024M -jar spigot-1.14.1.jar
       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
       do
       echo "$i..."
       sleep 1
       done
       echo "Rebooting now!"
       done 

      It's very annoying because I can start server with these files, but when it crashes for some reason and trying to restart itself with /restart{{ nothing happening. I have to do it mannually.

            Unassigned Unassigned
            kevin.mitnik Kevin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: