Watchdog process for Win32?

Posted by Krenath on Tue 25 Feb 2003 07:31 PM — 3 posts, 17,702 views.

USA #0
I'm looking for a utility that can monitor the pennmush.exe process and send a start request if it notices that pennmush.exe has terminated.

I certainly don't mind if it's a generic utility that monitors any specified process.

Anyone know of such a thing?
Australia Forum Administrator #1
See PortTester
USA #2
Thanks. I'll definitely give this a try.

Windows XP actually has a built-in tab under properties for services which allows you to select what the operating system should do when the service terminates.

Unfortunately, PennMUSH's tendency to make a copy of itself, start the copy, and terminate the original confuses XP's recovery options. It'll start a second copy of the MUSH which will then remain running in the background.

I've briefly considered commenting out the code that causes Pennmush to copy itself and run the copy, but that's the very thing that makes it possible to compile a new version and @shutdown/restart

Since we're tinkering with the hardcode now and again, but prefer to keep the MUSH up when we're not around, we may just force pennmush to run as pennMUSH.exe and tolerate the need for a reboot when upgrading code. It's better than being down for eight hours if I'm away from the machine.