Article 16592 of comp.sys.amiga.hardware: Path: orstcs!rutgers!network.ucsd.edu!usc!apple!uokmax!servalan!epmooch!ben From: ben@epmooch.UUCP (Rev. Ben A. Mesander) Newsgroups: comp.sys.amiga.hardware Subject: Re: FFS crashes (was "Re: The Fast File System is Slow") Message-ID: Date: 21 Dec 91 22:26:59 GMT References: <1991Dec14.223852.9806@let.rug.nl> <51719@cup.portal.com> <1991Dec21.165753.1955@ckctpa.UUCP> Organization: Elvis Presley Museum Of Obsolete Computing Hardware Lines: 62 In article <1991Dec21.165753.1955@ckctpa.UUCP> crash@ckctpa.UUCP (Frank "Crash" Edwards) writes: [...] >I travel a lot; before I go out of town I set up my Amiga on one of those >appliance control timers so that it comes on at 8:30am for 2.5 hours, and >at 8:30pm for 2.5 hours. > >When the machine boots, entries in WBStartup force my box to immediately >call my two feed sites, one after the other. Also, once an hour a poll file >is created. Every fifteen minutes, DCron checks for the poll file and >forces a call if it exists. (This means that if I miss a connection I'll >try again in fifteen minutes, but if the connection is made, I won't try >again until the poll file is recreated at the top of the hour.) > >I've been doing this for over 9 months now. I've _never_ had the filesystem >crash using this scenario. Notice that the appliance timer turns the machine >off without warning. (I have had other problems, like forgetting to turn on >the power strip that plugs into the timer. Or forgetting to turn on the >attached modem. :-) Why not run a cron job that goes off somewhat before the appliance timer shuts the machine down that goes through the output of the 'status' command and shuts down cron, getty, uucico, uuxqt, et. al. by sending them each a ^C? That's one of the things my system-shutdown script does. It would certainly seem to be inexpensive insurance! The appropriate part of my script, which depends on ARP, GNU sed, and other ugly things looks like: [...] ; ; shutdown processes associated with uucp ; path uucp:c bin: s: add echo "Stopping uucico" kill uucico echo "Stopping cron" kill dcron echo "Stopping getty" status | sed -n "s/.*getty/getty -0/p" | type to t:tmp.$$ ; ; execute scriptfile ; execute t:tmp.$$ delete t:tmp.$$ [...] Where "kill" is a script that looks like: .key process .bra { .ket } ; ; script file to kill process(es) by name ; status | sed -n /{process}/s/Process/break/p | sed -n "s/:.*/ all/p" | type to t:tmp.$$ execute t:tmp.$$ delete t:tmp.$$ -- | ben@epmooch.UUCP (Ben Mesander) | "Elvis, you take so many pills, | | ben%servalan.UUCP@uokmax.ecn.uoknor.edu | how can you feel anything?" | | ...!chinet!servalan!epmooch!ben | --Priscilla Presley | Yow! I a Zippy am virus. .signature me Copy your to in! join into .signature