"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