------------------------------------ Timed Reboots v1.0 Release A: README ------------------------------------ Release Date: 12th of April, 1999 Introduction + What this does ----------------------------- For a while now, the CircleMUD Mailing List gets a query from some new coder asking for some timed reboot system. Generally, they get told to "stick a boolean variable there, set your wait states, and have the process take care of it". Well, this code does basically that, although it's a lot more basic, and very understandable. To make this work, all you have to do is set two things within config.c. The first is "reboot_time". This is measured in seconds, so setting that to "30" will make it a 30 second wait until a reboot. The other setting is "reboot_state". By default, this should be set to 0, unless you have a desire to make your MUD reboot everytime it boots up within whatever reboot_time is set to. When you decide it's time to reboot, simply type "shutdown timed". This will set "reboot_state" to 1, and the heartbeat function in comm.c begins its countdown. When it hits zero, it performs it's reboot. Installation ------------ Stick this in your src/ dir and go "patch < timed_reboots.patch. Attend to any rejects, and compile. If you don't know how to patch or dont have a patch executable, I'd suggest you browse the CircleFTP site for the file "handpatch.doc". Basically, the "+"'s indicate ADD those lines, around where the other lines appear. Read the doc :) Credits & Disclaimer -------------------- This code isn't protected under any weird International Law stopping you from chopping and changing. You are free to improve, upgrade, destroy or whatever this code in anyway you see fit to. Any queries relating to this code or parts herein may be forwarded to me. If you make an adjustment you think we all could benefit from, let me know and I'll release a new patch. It's advised that reboot_state is kept as zero, unless you *really* require autoreboots within an allotted time. Other Patches by Myself ----------------------- I've released a small amount of stuff, probably more suited to the newer coder then the elder. Here's a small list, and their descriptions. 1. Heditv1-v2.zip : Heditv1 -> Heditv2 upgrade patch, with memory bug fixed. (18 August 1998) 2. Bridges.zip : Foundationary Bridging System, based on player weights. If you're too heavy, you'll be damaged. (06 January 1999) 3. Auto_notif.zip : UNIX automailer to let you know if the mud crashes, etc. Good for those IMPLs who are on vacation, alot. (27 March 1999) 4. Builder_lst.zip : Enables you to turn your zone editing permissions Obuild style; That is, with a builder list instead of going 'set whoever olc whatever' (12 April 1999) 5. Timed_reboots.zip : Timed reboots. Enables you to set a value to count down from. (12 April 1999) I'm a Win95 developer, hence the .ZIP formats of my archives. Have fun with it! -Caniffe (caniffe@cyberdude.com) Enclosures: 1. timed_reboots.readme (3.1 Kbytes) 2. timed_reboots.patch (2.4 Kbytes)