Currently(1655 MDT) the mud is semi-down. I mean that you can 'connect' to the mud, but, nothing happens. It just came up but was that way for about 16-18 minutes. It might be nice to setup a SIGALRM handler that fires off, say, once a minute, and checks to see if a variable has been reset to zero, if so it sets it to one, and continues. Have the main event loop set the variable to zero. That way, if the variable is not reset, the alarm handler knows that the mud is hosed, and can reboot.
Eilorn.
Watchdog timer for the mud
-
- Sojourner
- Posts: 229
- Joined: Tue Jan 30, 2001 6:01 am
- Location: Salt Lake City,UT,USA 84116
- Contact:
Watchdog timer for the mud
Now, we can do this the hard way, or... well, actually there's just the hard way.
-- Buffy, "Buffy the Vampire Slayer"
-- Buffy, "Buffy the Vampire Slayer"
-
- Sojourner
- Posts: 7275
- Joined: Sat Apr 14, 2001 5:01 am
- Location: Los Angeles, CA and Flagstaff, AZ
- Contact:
Not a bad idea.
You'd have to have it change an environment variable or write to a file though since from all accounts the mud is single threaded.
Also, you might wanna consider that it was allowed to hang for such a long period of time because staff was trying to fix it instead of just rebooting the game so you can get your rocks off.
just a thought.
You'd have to have it change an environment variable or write to a file though since from all accounts the mud is single threaded.
Also, you might wanna consider that it was allowed to hang for such a long period of time because staff was trying to fix it instead of just rebooting the game so you can get your rocks off.
just a thought.
and tonights winner in the Toril EQ lottery is demi belt and skull earring!
Who is online
Users browsing this forum: No registered users and 19 guests