From owner-cvs-all Sun Oct 6 9:24:38 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 93FE537B401; Sun, 6 Oct 2002 09:24:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B3D143E6E; Sun, 6 Oct 2002 09:24:37 -0700 (PDT) (envelope-from thomas@FreeBSD.org) Received: from freefall.freebsd.org (thomas@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g96GObCo088337; Sun, 6 Oct 2002 09:24:37 -0700 (PDT) (envelope-from thomas@freefall.freebsd.org) Received: (from thomas@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g96GObwW088326; Sun, 6 Oct 2002 09:24:37 -0700 (PDT) Message-Id: <200210061624.g96GObwW088326@freefall.freebsd.org> From: Thomas Quinot Date: Sun, 6 Oct 2002 09:24:36 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/reboot reboot.c X-FreeBSD-CVS-Branch: HEAD 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 thomas 2002/10/06 09:24:36 PDT Modified files: sbin/reboot reboot.c Log: Set only the RB_POWEROFF flag (not the RB_HALT flag) when '-p' is used on the reboot(8) command line. 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. 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. 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. Sounded reasonable to: phk Approved by: roberto (mentor) Revision Changes Path 1.17 +1 -1 src/sbin/reboot/reboot.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message