autorestart?

how can i make in ubuntu server that the gmod server will automatically restart after server crash?