From owner-freebsd-current@FreeBSD.ORG Tue Sep 29 13:46:58 2009 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 59DD1106566C for ; Tue, 29 Sep 2009 13:46:58 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 0BEC88FC18 for ; Tue, 29 Sep 2009 13:46:57 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1Msd2e-0008MR-0w; Tue, 29 Sep 2009 15:46:56 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= In-reply-to: <86fxa6gg8l.fsf@ds4.des.no> References: <4AC141B0.4090705@delphij.net> <86fxa6gg8l.fsf@ds4.des.no> Comments: In-reply-to =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= message dated "Tue, 29 Sep 2009 13:08:58 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 29 Sep 2009 15:46:56 +0200 From: Daniel Braniss Message-ID: Cc: FreeBSD Current , d@delphij.net 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: Tue, 29 Sep 2009 13:46:58 -0000 > > Xin LI writes: > > > I'm not sure if anyone would find this useful: > > > > > > - If a shutdown is initiated from a tty -and- > > > - It's not a restart -and- > > > - The time parameter is set to =22now=22 > > >=20 > > > Then, the shutdown(8) program would give something like this: > > >=20 > > > Shutting down NOW, press =5EC within 5 seconds to cancel= ... > > >=20 > > > So the user would get a chance to terminate it before it's too late= . > > I know we are living in a virtual world, where even shutting down > > a computer is just a 'wish', but lets keep some sanity, now means now= . > The =22now=22 is not an issue; I think his point is that you *really* d= on't > want to accidentally type =22shutdown -h now=22 or =22shutdown now=22 i= nstead of > =22shutdown -r now=22 in an ssh session to a remote system - especially= at 6 > pm on a Friday night when the machine is in a colo center that's only > manned during business hours. I understand what is at stake, my problem is that in other *Unixes, sysV/= Solaris 'shutdown now' is actually sometime in the future :-), and it does not he= lp much if you are far away and the link is slow, so the 5 sec. grace is act= ually taken up by the bandwidth - or you are connected via an iphone, how do yo= u hit =5EC :-) what if the machine is compromised and you really want to power it off, now the intruder has another 5 seconds ... thankfully +0 works, or are there plans to change that too? :-) careful=21 bikeshead ahead cheers, danny