Open Huntooon opened 4 years ago
If I understand you correctly, you would like this script to restart server only after backup restore, right?
I would like the script to restart the server every time it stops, but including backup restore too. Because I have the issue that I restore the backup using the mod but the server does not get started again. Does that make sense?
Oh. I'll see what can be done.
I'm sorry but for me it all works well. One thing I don't understand is what that -server options is.
what sort of script do you have running that allows your server to restart on a crash, or /stop command?
Okay so If i launch my server, then do not take any backups and stop the server with /stop then the script I posted above works, and the server restarts automatically. However, if a backup has occurred, whether with /backup start or an automatic one, The server will shut down with /stop but will get stuck on [Server thread/INFO]: Thread Query Listener stopped
aka the last line when the server shuts down. so for some reason the script start.sh that I posted does not recognize it when the server stops after it has taken a backup at any point. I have backup on shutdown off as well.
Here is an example of this issue. after the backup is taken, if you do /stop the server gets stuck here.
It should do this:
I did not take a backup before doing /stop in the second picture.
When restoring a backup the server shuts down, the backup is restored but the server does not start up again. I use a shell script to launch the server automatically on a stop or crash. Is there any way I can modify this script or the mod to auto-restart after a backup restore? I'm quite sure this is standard but I will paste the script below. Any help would be greatly appreciated :)
#!/bin/bash while true; do java -server -Xmx10G -XX:MaxPermSize=10240M -jar creative.jar echo "You have 5 seconds to stop the server using Ctrl-C. Server will restart otherwise" sleep 5 done
try Fabric_BackUp this is a fork from this mod
When restoring a backup the server shuts down, the backup is restored but the server does not start up again. I use a shell script to launch the server automatically on a stop or crash. Is there any way I can modify this script or the mod to auto-restart after a backup restore? I'm quite sure this is standard but I will paste the script below. Any help would be greatly appreciated :)