From owner-freebsd-current@FreeBSD.ORG Tue Sep 29 13:32:19 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 4C10E1065679 for ; Tue, 29 Sep 2009 13:32:19 +0000 (UTC) (envelope-from john@baldwin.cx) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1B4A08FC16 for ; Tue, 29 Sep 2009 13:32:19 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 9D7E446B0C; Tue, 29 Sep 2009 09:32:18 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id E6AF08A01B; Tue, 29 Sep 2009 09:32:17 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Date: Tue, 29 Sep 2009 09:28:44 -0400 User-Agent: KMail/1.9.7 References: <4AC141B0.4090705@delphij.net> <86fxa6gg8l.fsf@ds4.des.no> In-Reply-To: <86fxa6gg8l.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200909290928.44645.john@baldwin.cx> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 29 Sep 2009 09:32:17 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx X-Mailman-Approved-At: Tue, 29 Sep 2009 16:37:32 +0000 Cc: Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= , 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:32:19 -0000 On Tuesday 29 September 2009 7:08:58 am Dag-Erling Sm=C3=B8rgrav wrote: > Daniel Braniss writes: > > Xin LI writes: > > > I'm not sure if anyone would find this useful: > > >=20 > > > - If a shutdown is initiated from a tty -and- > > > - It's not a restart -and- > > > - The time parameter is set to "now" > > >=20 > > > Then, the shutdown(8) program would give something like this: > > >=20 > > > Shutting down NOW, press ^C 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. >=20 > 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. I would even want it for 'shutdown -r' to be honest. I occasionally reboot= my=20 desktop instead of a remote box due to accidentally logging out of an ssh=20 session, etc. I've actually done a 'chmod 000' of /sbin/shutdown on my=20 current desktop as a workaround for now. :-/ =2D-=20 John Baldwin