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?
Was this page helpful?