Detect if the server crash at start

It (normally) detect if the server has crash at start (not if the server is killed). I'm not sure if it's work but i think.