I need an autorestarter that waits 5 seconds after the server is started, to close the other server.

example:

old server on.

worldmap loading that takes 5 seconds
after 5 seconds the new server is on.

close the old server so they don't clash through port 43594.