On Sunday 16 March 2003 20:43, 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.
Don't you have an emergency shutdown feature in your motherboard BIOS? I think most motherboards with heat sensors also have that feature to emergency kill the system when it reaches a preset max temperature I don't know of a way to automate it from within linux though, but it should be possible, since you can poweroff the system instantly with the magic sysrq key 'o'. I haven't seen it implemented in a program though.