Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2009 20:46:27 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        Doug Barton <dougb@freebsd.org>
Cc:        =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= <des@des.no>, freebsd-current@freebsd.org, Robert Watson <rwatson@freebsd.org>
Subject:   Re: [PATCH] Shutdown cooloff feature
Message-ID:  <9bbcef730909291146s5fb64bfdy7e5081dd4c804e27@mail.gmail.com>
In-Reply-To: <4AC247DC.4010502@FreeBSD.org>
References:  <4AC141B0.4090705@delphij.net> <alpine.BSF.2.00.0909291245080.91454@fledge.watson.org>  <h9st65$eni$1@ger.gmane.org> <86ws3iexl3.fsf@ds4.des.no> <h9t09n$qhl$1@ger.gmane.org> <86ske5gav0.fsf@ds4.des.no> <alpine.BSF.2.00.0909291542190.94746@fledge.watson.org>  <4AC247DC.4010502@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/9/29 Doug Barton <dougb@freebsd.org>:
> Robert Watson wrote:
>> I could be convinced by an argument that reboot and shutdown -r should
>> be the same,
>
> I have asked for this several times in the past but don't have the
> time to generate the patches myself. I think halt should be treated
> similarly as well. We just had a case (I believe on -stable) where a
> user was using 'halt' thinking that it would do the same thing as
> 'shutdown now' but was easier to type. He was having corruption in his
> ldap db because it wasn't being shut down cleanly.
>
> That said, I agree with the posters that have said that there should
> be overrides to halt and shutdown to force the old behavior.

... which probably uses BDB so it's as easy to "corrupt" as sneezing :)

But yes, what I'd wish is that the default behaviour of all (shutdown,
reboot, halt) be as "shutdown" is now, and introducting a command line
switch (I see "-f" is not taken) for the odd emergency case when the
old behaviour is needed. I'd also advocate "halt" meaning "shutdown
-p", i.e. shutdown with poweroff instead of just stopping the kernel,
which is mostly useless.



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