Re: [PATCH] Shutdown cooloff feature

From: Matthew Seaman <m.seaman_at_infracaninophile.co.uk>
Date: Sun, 03 Jan 2010 09:32:15 +0000
Aristedes Maniatis wrote:

> Why would an operating system have an unclean shutdown command at all? 

reboot(8) by default isn't a completely unclean shutdown.  It does flush
any pending IO to disk and send a SIGTERM to all processes which should 
stop them relatively cleanly and get you back up again without having to
fsck(8) everything.  What it doesn't do is run the rc.subr(8) shutdown
scripts.  A lot of the time, you'ld get away with that.  It's only if
you've got apps that don't handle SIGTERM correctly, or that take too
long shutting down and get zapped by the SIGKILL reboot(8) sends
to the laggards.  (A big RDBMS for instance)

If you want a really unclean shutdown, try 'reboot -q' or 'reboot -n'.
'reboot -qn' is virtually the same as toggling the power off and on again
at the mains.  Hmmm... didn't there use to be a note about using 'halt -n'
"if the processor catches fire" in the reboot(8) man page?

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


Received on Sun Jan 03 2010 - 08:32:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:59 UTC