Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2001 11:10:11 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        thomas@cuivre.fr.eu.org
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: reboot -p 
Message-ID:  <47197.1009447811@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 26 Dec 2001 13:04:06 %2B0100." <20011226130406.A79031@melusine.cuivre.fr.eu.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




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