From owner-cvs-all Sun Oct 6 21: 3: 8 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2B1F37B401; Sun, 6 Oct 2002 21:03:05 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AF9E43E86; Sun, 6 Oct 2002 21:03:04 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (5wakpxz69ou9houl@dsl-130-129.aei.ca [66.36.130.129]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id g9742oH00494; Mon, 7 Oct 2002 00:02:56 -0400 (EDT) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id F164C342; Sun, 6 Oct 2002 23:08:03 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Sun, 6 Oct 2002 23:01:55 -0400 Date: Sun, 6 Oct 2002 23:01:55 -0400 From: The Anarcat To: Thomas Quinot Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/reboot reboot.c Message-ID: <20021007030155.GC580@lenny.anarcat.ath.cx> Mail-Followup-To: Thomas Quinot , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org References: <200210061624.g96GObwW088326@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Content-Disposition: inline In-Reply-To: <200210061624.g96GObwW088326@freefall.freebsd.org> User-Agent: Mutt/1.5.1i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --KFztAG8eRSV9hGtP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Shouldn't the manpage be updated too? I was thinking of something like: --- reboot.8.orig Sun Oct 6 23:00:32 2002 +++ reboot.8 Sun Oct 6 23:01:30 2002 @@ -109,10 +109,7 @@ .It Fl p The system will turn off the power if it can. -This is of course likely to make -.Nm -rather similar to -.Nm halt . +If it cannot, it will reboot normally. .El .Pp The Am I missing something here? :) A. On Sun Oct 06, 2002 at 09:24:36AM -0700, Thomas Quinot wrote: > thomas 2002/10/06 09:24:36 PDT >=20 > Modified files: > sbin/reboot reboot.c=20 > Log: > Set only the RB_POWEROFF flag (not the RB_HALT flag) when > '-p' is used on the reboot(8) command line. > =20 > This is intended for use when you want to attempt a power down > action, but you want the system to reboot (not halt) if the > power down action fails. > =20 > This is typically useful when the power-off action performed by > the kernel consists in signalling an uninterrupted power supply > that it should shut down its inverter if mains power has not returned. > =20 > The behaviour of shutdown(8) and init(8) is not modified; > only the behaviour of invoking 'reboot -p' manually is > modified, and then only in the case when a power-down action > fails. > =20 > Sounded reasonable to: phk > Approved by: roberto (mentor) > =20 > Revision Changes Path > 1.17 +1 -1 src/sbin/reboot/reboot.c >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe cvs-all" in the body of the message >=20 --=20 Premature optimization is the root of all evil - Donald Knuth --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9oPkjttcWHAnWiGcRAvL8AJ9NPVNQQaAnqEaD0mXaxgbJ01NobACfYC0C 9IRICKY1l4xDA7S5bWK5Hd4= =RMgz -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message