From owner-svn-src-all@freebsd.org Sat Feb 25 07:53:43 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E5FBCECE32; Sat, 25 Feb 2017 07:53:43 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 2AA85DB; Sat, 25 Feb 2017 07:53:41 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id JAA07352; Sat, 25 Feb 2017 09:53:40 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1chXAi-00025o-JX; Sat, 25 Feb 2017 09:53:40 +0200 Subject: Re: svn commit: r314239 - head/rescue/rescue To: Ngie Cooper , src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, svn-src-head@FreeBSD.org References: <201702250311.v1P3B89W008306@repo.freebsd.org> From: Andriy Gapon Message-ID: Date: Sat, 25 Feb 2017 09:52:45 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <201702250311.v1P3B89W008306@repo.freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2017 07:53:43 -0000 On 25/02/2017 05:11, Ngie Cooper wrote: > Author: ngie > Date: Sat Feb 25 03:11:08 2017 > New Revision: 314239 > URL: https://svnweb.freebsd.org/changeset/base/314239 > > Log: > Add shutdown/poweroff support to rescue(8) > > shutdown is a safer way to power off than reboot (in general), because of > the added shutdown process that it executes via /etc/rc.shutdown . It was > odd that it was missing from rescue(8) since reboot and friends were > added in past commits. Just a note that rescue is typically used in situations where rc.shutdown is of little use. E.g., most likely there won't be any daemons running, etc. > While here, alias poweroff to shutdown for parity with sbin/shutdown/Makefile > > MFC after: 2 weeks > Sponsored by: Dell EMC Isilon > > Modified: > head/rescue/rescue/Makefile > > Modified: head/rescue/rescue/Makefile > ============================================================================== > --- head/rescue/rescue/Makefile Sat Feb 25 01:53:45 2017 (r314238) > +++ head/rescue/rescue/Makefile Sat Feb 25 03:11:08 2017 (r314239) > @@ -99,7 +99,7 @@ CRUNCH_PROGS_sbin= badsect \ > mount_udf mount_unionfs newfs \ > newfs_msdos nos-tun ping reboot \ > restore rcorder route routed rtquery rtsol savecore \ > - spppcontrol swapon sysctl tunefs umount > + shutdown spppcontrol swapon sysctl tunefs umount > > .if ${MK_ATM} != "no" > CRUNCH_PROGS_sbin+= atmconfig > @@ -166,6 +166,7 @@ CRUNCH_ALIAS_restore= rrestore > CRUNCH_ALIAS_dump= rdump > CRUNCH_ALIAS_fsck_ffs= fsck_4.2bsd fsck_ufs > CRUNCH_ALIAS_geom= glabel gpart > +CRUNCH_ALIAS_shutdown= poweroff > > # dhclient has historically been troublesome... > CRUNCH_PROGS_sbin+= dhclient > -- Andriy Gapon