Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Oct 2002 23:01:55 -0400
From:      The Anarcat <anarcat@anarcat.ath.cx>
To:        Thomas Quinot <thomas@FreeBSD.org>
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>
In-Reply-To: <200210061624.g96GObwW088326@freefall.freebsd.org>
References:  <200210061624.g96GObwW088326@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021007030155.GC580>