From owner-freebsd-current@FreeBSD.ORG Sun Jan 3 09:32:28 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E20F106566C for ; Sun, 3 Jan 2010 09:32:28 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id A375A8FC1F for ; Sun, 3 Jan 2010 09:32:27 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id o039WMwM034363; Sun, 3 Jan 2010 09:32:22 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o039WMwM034363 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1262511142; bh=s7slymFuMtsNh6Hq3funMUHhle+3lq+I4MSYorJXKiI=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B40641F.2010005@infracaninophile.co.uk>|Date:=20S un,=2003=20Jan=202010=2009:32:15=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20091129)|MIME-Vers ion:=201.0|To:=20Aristedes=20Maniatis=20|CC:=20fre ebsd-current@freebsd.org|Subject:=20Re:=20[PATCH]=20Shutdown=20coo loff=20feature|References:=20<4AC141B0.4090705@delphij.net>=09=09=20<4B405C3D.7090501@ish.com.au>|In-Reply-To:=20<4 B405C3D.7090501@ish.com.au>|X-Enigmail-Version:=200.95.6|Content-T ype:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protoc ol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"---------- --enig7803A78CB78F80E84589946C"; b=GuoP9xPJkWgt79mXZOdC0qIDk37235YJfavv09jqmpMcrhm4cVwd5WCWOMaL4cBjF wttdhuVr3yC9X6IdAjS1PBm0swDASeRcBoep4ap7nI7gsMLSLTsmW0sba4RzvUGq/i gzbr2CqURNiZT3gYOx2Sczysl6OBzI6frdJnHSFQ= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B40641F.2010005@infracaninophile.co.uk> Date: Sun, 03 Jan 2010 09:32:15 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20091129) MIME-Version: 1.0 To: Aristedes Maniatis References: <4AC141B0.4090705@delphij.net> <4B405C3D.7090501@ish.com.au> In-Reply-To: <4B405C3D.7090501@ish.com.au> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig7803A78CB78F80E84589946C" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] Shutdown cooloff feature X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jan 2010 09:32:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7803A78CB78F80E84589946C Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable 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=20 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 --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig7803A78CB78F80E84589946C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----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----- --------------enig7803A78CB78F80E84589946C--