From owner-svn-src-head@FreeBSD.ORG Fri Dec 31 16:58:07 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7593F1065673 for ; Fri, 31 Dec 2010 16:58:07 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 068B68FC1E for ; Fri, 31 Dec 2010 16:58:06 +0000 (UTC) Received: from c83-255-61-120.bredband.comhem.se ([83.255.61.120]:20520 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.72) (envelope-from ) id 1PYiGf-0005On-6r for svn-src-head@freebsd.org; Fri, 31 Dec 2010 17:55:54 +0100 Received: (qmail 28124 invoked from network); 31 Dec 2010 17:55:52 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 31 Dec 2010 17:55:52 +0100 Received: (qmail 24896 invoked by uid 1001); 31 Dec 2010 17:55:52 +0100 Date: Fri, 31 Dec 2010 17:55:52 +0100 From: Erik Trulsson To: Jilles Tjoelker Message-ID: <20101231165552.GA24854@owl.midgard.homeip.net> References: <201012301806.oBUI6VcW046731@svn.freebsd.org> <20101231144308.GA55052@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101231144308.GA55052@stack.nl> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: 83.255.61.120 X-Scan-Result: No virus found in message 1PYiGf-0005On-6r. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1PYiGf-0005On-6r e71381b9096b68a4dea363918b7187d6 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Pawel Jakub Dawidek Subject: Re: svn commit: r216823 - head/sbin/shutdown X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 16:58:07 -0000 On Fri, Dec 31, 2010 at 03:43:08PM +0100, Jilles Tjoelker wrote: > On Thu, Dec 30, 2010 at 06:06:31PM +0000, Pawel Jakub Dawidek wrote: > > Author: pjd > > Date: Thu Dec 30 18:06:31 2010 > > New Revision: 216823 > > URL: http://svn.freebsd.org/changeset/base/216823 > > > Log: > > For compatibility with Linux and Solaris add poweroff(8). > > > It is implemented as a hard link to shutdown(8) and it is equivalent of: > > > # shutdown -p now > > If we go that way, then for consistency reboot(8) and halt(8) should > also be equivalent to calling shutdown -r now and shutdown -h now > respectively, unless conflicting options are given. Linux has a -f > option for what's currently reboot's and halt's default action, and > fastboot(8)/fasthalt(8) could also retain the current behaviour. > > I would be in favour of this change. I would not be in favour of such a change. Adding a new command that did not previously exist in FreeBSD (e.g. poweroff(8)) is one thing, and is unlikely to break anything or confuse anybody. Changing the meaning of a command that is already present in FreeBSD is something else, which is far more likely to cause problems. Such changes should generally be avoided unless there is some really good reason to do it, and I don't think such a reason exists in this case. -- Erik Trulsson ertr1013@student.uu.se