On Tuesday 11 March 2003 11:06 am, H du Plooy wrote:
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
What I would do would be to learn the 'magic shutdown'... which if your kernel is built for it (I believe SuSE kernels are) would be: Alt-Sysreq-u (twice doesn't hurt) Alt-sysreq-s (twice too) Then you could turn your machine off. But if it's hung up, and you want to re-boot, then: Alt-sysreq-b Read up on the 'magic key' (I think it's called) The first two above does a 'sync' and then a mount as Read-only. The 3rd does a boot. Should provide a clean shutdown but YMMV. (and sometimes when the machine is locked, it doesn't respond to the above anyway)
Thanks Hans
== Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
-- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 03/11/03 11:16 + +----------------------------------------------------------------------------+ "Hire the handicapped - They're fun to watch."