Server Auto restart???

Can someone Tell me how to make my Server Restart if it Crashes i’m useing The Srcds and i sometime leave it on when i come back its offline

Btw its For Garry’s Mod Beta

ServerDoc would work for you.