From owner-freebsd-current@FreeBSD.ORG Tue Sep 29 18:46:49 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 378D41065672; Tue, 29 Sep 2009 18:46:49 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id 68DAB8FC12; Tue, 29 Sep 2009 18:46:48 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 4so1276053eyf.9 for ; Tue, 29 Sep 2009 11:46:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=iRRnag1xC4g3jcZ26Uu1wssTnFcI0GLQmz7FRuV2RLw=; b=DEIFV2Mg93fcC3WDNIsaa2AQ8GgtSvg0ZSUB2h4p3SwLpwcp4c514zmGaUSfIq8PWy adxwS+CSh3QaOTh/Rwbfg/NBRvC92ZWV0Wqy1gufAHztAAaXOSFzwalcfvpEeT66lsgr Jc0Hd5dyShTTuJuS2RQ9UcuUFl9Y5dut2TdGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=rVgrc3ytv3e1oKD5S6LNUdOWYsvhWJZSIVcmtEeCARCU9CG5g4c2FZ46ZGtl6pyhO/ LNozEr0av2yzZtTywbVlk0Ucf9swoR1Lc3TOC/ajH+bxewmIsLK/Yb8fds79uO+B90DP wy96YwJKPSj+5mpY9wm22/Qe1SfIWHxAps7IA= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.13.201 with SMTP id b51mr1160334web.38.1254250007139; Tue, 29 Sep 2009 11:46:47 -0700 (PDT) In-Reply-To: <4AC247DC.4010502@FreeBSD.org> References: <4AC141B0.4090705@delphij.net> <86ws3iexl3.fsf@ds4.des.no> <86ske5gav0.fsf@ds4.des.no> <4AC247DC.4010502@FreeBSD.org> From: Ivan Voras Date: Tue, 29 Sep 2009 20:46:27 +0200 X-Google-Sender-Auth: fefb26ab0a714f15 Message-ID: <9bbcef730909291146s5fb64bfdy7e5081dd4c804e27@mail.gmail.com> To: Doug Barton Content-Type: text/plain; charset=UTF-8 Cc: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= , freebsd-current@freebsd.org, Robert Watson Subject: Re: [PATCH] Shutdown cooloff feature X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2009 18:46:49 -0000 2009/9/29 Doug Barton : > 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.