restart.sh? script

I want to make a script that restarts the server on a crash and on /restart command, but when it gets stopped /stop it doenst. How to do that?
5 Replies
Admincraft Meta
Thanks for asking your question!
Once you have finished, please close your thread. Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close !close !solved
Requested by sk3l3t0n_#0
Discount Milk
Discount Milk2y ago
Check the post history here, there's a thread with your answer
ProGamingDk
ProGamingDk2y ago
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
ProGamingDk
ProGamingDk2y ago
can generate a auto restart script aswell/include it
Skeleton
SkeletonOP2y ago
interesting, thanks for the website. I was using mostly the same flags but from papers website, and they were a little different, for ex waterfall had a MaxInlineLevel on ur site, and not on papers docs, also with the spigots paper had some gc logging flags while the site didnt. -Xloggc:gc.log -verbose:gc -XX:+PrintGCDetails XX:+PrintGCDateStamps XX:+PrintGCTimeStamps UseGCLogFileRotation NumberOfGCLogFiles GCLogFileSize vps with ubuntu

Did you find this page helpful?