"H du Plooy"
I'm trying to get a script going that would shutdown my linux system in case of emergency (like the CPU fan going bust).
Is there a way to shut down cleanly, but without taking the trouble to stop all running services ect. I want it to just unmount all mounted systems (hard unmount, weather or not they're in use) and have ACPI or APM or whatever switch the machine off.
Is this possible? Any pointers appreciated
Thanks Hans
==
Hans you asked for pointers ---- my first question is: Do you want the script to be enacted by a "onsite, awake" systems admin who is just waiting to push the "red panic button" as he goes running out the door, and your script will shut down the machine; and you don't care if any data is lost, because the cpu is worth more than cost of data --- or are you going to have is all done automatically (i.e. the CPU temp sensor sense a problem, and initiates shutdown w/o any human hands --- ) ??? Pointers: Maybe a second cpu fan, along w/ a haylon system would be a good idea --- also add a power filter, ups, and go from there... (or maybe the "magic key" & "/sbin/poweroff" is all you needed) You could send those commands from a "firebox" on local net wired to smoke alarm & temp sensors that had "root's (su) password." Friendly greetings -- Mark Twain: "Sorry I wrote such a long email; I didn't have time to write a short one." __________________________________________________________________ Try AOL and get 1045 hours FREE for 45 days! http://free.aol.com/tryaolfree/index.adp?375380 Get AOL Instant Messenger 5.1 for FREE! Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promos=380455
Hans you asked for pointers ---- my first question is: Do you want the script to be enacted by a "onsite, awake" systems admin who is just waiting to push the "red panic button" as he goes running out the door, and your script will shut down the machine; and you don't care if any data is lost, because the cpu is worth more than cost of data --- or are you going to have is all done automatically (i.e. the CPU temp sensor sense a problem, and initiates shutdown w/o any human hands --- ) ???
Thanks for your response. This is for my personal machine (which is both a business and home/entertainment machine), running ftp, firewall, seti and a couple of other things continuously. It's on 24/7 and I spend a lot of time on it, but when I'm asleep or away, I'd like it to be able to save itself should need be. I have sensors and gkrelm (?) running so I always keep an eye on the temperature. I have stopped the fan once deliberately to see how quickly it heats up - not too quickly at all, there should be at least half a minute before it gets too hot (assuming "too hot" somewhere around 75 degrees C, although I've heard Athlons can survive up to 90 degrees. My idea is to write a small program that takes input from sensors, and when CPU temperature goes above a certain level, it shuts down the machine. My mother's mobo's bios can do that all by itself, (although it switches off dead), but mine can. I know there's a PCI board available that does this, I'll invest in it if I can get it for a reasonable price on this side of the atlantic...
Pointers: Maybe a second cpu fan, along w/ a haylon system would be a good idea --- also add a power filter, ups, and go from there...
I'm looking out for a second fan that would fit between the cpu and ram, and a third one will be added too. Thanks for your reply! Hans == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
participants (2)
-
GarUlbricht7@netscape.net
-
H du Plooy