From owner-freebsd-current@FreeBSD.ORG Tue Sep 29 11:14:53 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 2D1F01065670 for ; Tue, 29 Sep 2009 11:14:53 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id DBD788FC21 for ; Tue, 29 Sep 2009 11:14:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 102C29CB0FB; Tue, 29 Sep 2009 13:14:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J-GILscfGT2Q; Tue, 29 Sep 2009 13:14:46 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id A6D4D9CB111; Tue, 29 Sep 2009 13:14:46 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n8TBEj8i064883; Tue, 29 Sep 2009 13:14:45 +0200 (CEST) (envelope-from rdivacky) Date: Tue, 29 Sep 2009 13:14:45 +0200 From: Roman Divacky To: Dag-Erling Sm??rgrav Message-ID: <20090929111445.GA63418@freebsd.org> References: <4AC141B0.4090705@delphij.net> <86fxa6gg8l.fsf@ds4.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86fxa6gg8l.fsf@ds4.des.no> User-Agent: Mutt/1.4.2.3i 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 11:14:53 -0000 On Tue, Sep 29, 2009 at 01:08:58PM +0200, Dag-Erling Sm??rgrav wrote: > Daniel Braniss writes: > > 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 "now" > > > > > > Then, the shutdown(8) program would give something like this: > > > > > > Shutting down NOW, press ^C within 5 seconds to cancel... > > > > > > 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 "now" is not an issue; I think his point is that you *really* don't > want to accidentally type "shutdown -h now" or "shutdown now" instead of > "shutdown -r now" 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. maybe we can hack tcsh (as our root shell) to ask "are you really sure" when entering shutdown/reboot/halt command?