Re: [NEWBIE] shutdown/reboot of mud

From: Jon Ridgwell (j.ridgwell@virgin.net)
Date: 08/01/01


Not sure if this would be really suitable to you however.......
    If you are able to leave the process running throughout the day then you
can check for time of day on new logins and if it is not within the
acceptable hours display a "Try again later message" in a similar way to
that displayed if new players are not allowed.
    For those players that are currently logged in you could send a warning
saying that they are going to get kicked off in 5 minutes by comparing times
within the heartbeat (or somewhere less frequently checked to save on cpu
cycles) and then kick everyone off when the time comes by getting the code
to do the same stuff as when a god types shutdown (except the exiting
program bit of course =)

Hope this helps
    -JOn

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST