Automate a task to run when a process fails

I have a Windows 2000 Server that is running a process that will fail and to get it to restart, requires that I stop and restart a running service. I would like to know if anyone knows a program, freeware if possible, that I can use to monitor that process and then when it fails trigger an event such as stopping and restarting the service.
 
hmm; not sure on Win2k, but later systems have a built-in feature to restart failing service - - Recovery

run services.msc, find your service and double click to get the properties
Click on the Recovery Tab and find the First, Second, Subsequent failure choices,
where one choice is always Restart the Service. If you need some program to be
run (eg: post an alert to a central site), use the Run A Program
 
Back