Date: Sun, 03 Jan 2010 09:32:15 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Aristedes Maniatis <ari@ish.com.au> Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] Shutdown cooloff feature Message-ID: <4B40641F.2010005@infracaninophile.co.uk> In-Reply-To: <4B405C3D.7090501@ish.com.au> References: <4AC141B0.4090705@delphij.net> <alpine.BSF.2.00.0909291245080.91454@fledge.watson.org> <hhoobp$grh$1@ger.gmane.org> <4B405C3D.7090501@ish.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAktAZCYACgkQ8Mjk52CukIx1/QCdGV6EwQvG6sqhx4cYuebCTjN4
89cAn2aZlJu5QUdk4Ddyn8euvDaG0Uxf
=ovfU
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B40641F.2010005>
