From owner-svn-src-head@FreeBSD.ORG Fri Dec 31 22:01:42 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 360ED1065672; Fri, 31 Dec 2010 22:01:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 951078FC15; Fri, 31 Dec 2010 22:01:41 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id oBVLvHqi034356; Fri, 31 Dec 2010 14:57:18 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4D1E51BD.8090707@bsdimp.com> Date: Fri, 31 Dec 2010 14:57:17 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: Jilles Tjoelker References: <201012301806.oBUI6VcW046731@svn.freebsd.org> <20101231144308.GA55052@stack.nl> In-Reply-To: <20101231144308.GA55052@stack.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 22:01:42 -0000 On 12/31/2010 07:43, 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'm not sure I'd go this far. I really *LIKE* that halt/reboot is the low-level interface that shutdown -r now calls. I'm not sure that moving away from this would be a good idea. It cuts out many levels of indirection that can be useful in many instances. Warner