From owner-freebsd-current Thu Dec 27 2:12:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 7A58737B405 for ; Thu, 27 Dec 2001 02:12:24 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.6/8.11.6) with ESMTP id fBRAABl47199; Thu, 27 Dec 2001 11:10:16 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: thomas@cuivre.fr.eu.org Cc: freebsd-current@FreeBSD.ORG Subject: Re: reboot -p In-Reply-To: Your message of "Wed, 26 Dec 2001 13:04:06 +0100." <20011226130406.A79031@melusine.cuivre.fr.eu.org> Date: Thu, 27 Dec 2001 11:10:11 +0100 Message-ID: <47197.1009447811@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20011226130406.A79031@melusine.cuivre.fr.eu.org>, Thomas Quinot wri tes: >Currently, when reboot is invoked with the '-p' command line flag >(powerdown), it performs a shutdown with RB_HALT|RB_POWEROFF. >In some situations, it can be useful to try to perform a poweroff, >but reboot if it fails (e.g. when you are shutting down the system >as a result of a power failure, you want the system to reboot, >*not* stay down, if power was restored after the start of the shutdown >procedure). It would be nice if reboot was changed to pass only >RB_POWEROFF (without RB_HALT) when invoked with '-p'. Of course halt(8) >whould be unaffected and still pass RB_HALT|RB_POWEROFF when invoked >as halt -p. > >What do others think of this change: Sounds reasonable. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message