Custom Startup



  • Is it possible to change the start up script to something like this?...

    #!/bin/sh
    while true
    do
    java -Xms${memory}M -Xmx${memory}M -server -jar ${jar}
    echo "Shutdown or Crash detected, Rebooting..."
    echo "Rebooting in:"
    for i in 5 4 3 2 1
    do
    echo "$i..."
    sleep 1
    done
    echo "Rebooting now!"
    done
    

    So that when /stop is run from in game the server will auto restart after 5 seconds.
    Regards?



  • Not really, Scales is not very flexible when it comes to things like that. It does have a built in crash detector that tries to restart the server upon crash, but running /stop is not counted as a crash.


Log in to reply
 

Looks like your connection to PufferPanel Community was lost, please wait while we try to reconnect.