Hi. I've been using this restart script for all my servers for years now. It includes the execution of an external start.sh, and some other countdown functions on another script. The script itself can simply start and stop a server on a tmux window. Feel free to use something similar for your own needs! (allthough I admit the script parts are not all included in this case): Code (Text): . /home/network/SCRIPTS/functions.sh serverName="Survival" window=2 cuentaAtras echo "deteniendo servidor $serverName..." tmux send-keys -t network:0 'send Survival Hub' C-m tmux send-keys -t network:$window 'stop' C-m sleep 30 tmux send-keys -t network:$window 'bash start.sh' C-m echo "iniciando servidor $serverName..." exit 0 The issue with this one is that sometimes the server can take more than 30s delay to stop, thus if the delay is shorter than the actual time it takes for the server to stop, the server will never start. This makes the script imperfect, since it can sometimes not fully restart. It beats me why sometimes it would take so long to stop, but I really don't consider it a pressing issue right now, and it doesn't always happen. What I would need is for some way of knowing with certainty when the server went off (like the script getting notified?), and then continue the execution of the script, this way avoiding the times where the server just stays off until we notice it didn't restart properly. Any ideas? Alternatively I could just increase the delay, but the need above would be much cleaner.