-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 16 March 2003 11:43 am, H du Plooy wrote:
This still does the stopping_this_service stopping_that_service and takes a good 30 seconds before the machine switches off. This is too long.
I want it to get the "switch-off-now!" signal, unmount all filesystems regardless of weather they're being used or not, and cut the power. Or better - cut the power straight away. This is emergency procedure. My data is important but NOT as valuable as the hardware.
I think you've just given yourself the answer: use the switch on the wall [powerstrip] to cut power to the system and pick up the pieces later. Offhand I can't think of many reasons why you would want this -- some fanciful ones come to mind [the CPU is controlling a robotic arm that is about to crush the system itself...] but that's about it -- you state this is an emergency procedure [the building is on fire?] and that the hardware is more important than the data [very rare -- implies you have religiously applied a backup & recovery system] but most "emergency shutdown" scenarios I can think of (like a fire) imply the external destruction of the hardware anyway... However, just before I hit "send" I thought of another avenue you might take: look into the "powerfail" shutdown mode/script/whatever [something like runlevel 6, I think?] This is supposed to be triggered by a signal from an battery-backed power supply that (a) power is out, and (b) the battery is nearly depleted... The implication being that there may not be enough power to flush disk write queues if the system keeps "processing" for much longer... - -- Yet another Blog: http://osnut.homelinux.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+dN8iV/YHUqq2SwsRAh5lAKC+mR6XukwvbUOMNzuwBLKA0yUBEwCbBYW4 nfMUdiTJYTdTqDZxMU/SNMA= =HFUD -----END PGP SIGNATURE-----