Linux server restart

Hi.
I am in search for a script that is able to restart my WINE gmod server when it crashed.
I have tried a perl script but it didn’t launch(didn’t like the parameter wine) and if it launched woudn’t detected the server as running.
Anybody know’s a good script/program?
I am using the latest ubuntu.

Since you’re using Wine anyways, how about ServerChecker?
http://highguy.dumbclan.com/ServerChecker.msi
it bitches about a couple of errors, but works fine for it’s purpose.
Though you’re better off installing native Linux binaries.