From owner-freebsd-questions@FreeBSD.ORG Thu Sep 24 20:38:11 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F040106566C for ; Thu, 24 Sep 2009 20:38:11 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id BFEAB8FC27 for ; Thu, 24 Sep 2009 20:38:10 +0000 (UTC) Received: (qmail 12073 invoked by uid 399); 24 Sep 2009 20:38:07 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 24 Sep 2009 20:38:07 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4ABBD8A8.2030904@FreeBSD.org> Date: Thu, 24 Sep 2009 13:38:00 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: Olivier Nicole References: <4AB8BAA9.1060100@zedat.fu-berlin.de> <200909222248.16475.doconnor@gsoft.com.au> <4AB93614.2080106@locolomo.org> <200909231104.39234.doconnor@gsoft.com.au> <4AB9DDD8.2020700@zedat.fu-berlin.de> <200909230856.n8N8u2hp062395@banyan.cs.ait.ac.th> In-Reply-To: <200909230856.n8N8u2hp062395@banyan.cs.ait.ac.th> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, ohartman@zedat.fu-berlin.de, freebsd-questions@freebsd.org Subject: Re: LDAP server gone -> impossible to login locally! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2009 20:38:11 -0000 Olivier Nicole wrote: > Last June, we had to shutdown our openldap server every night, I > noticed that a simple halt(8) would leave the bdb backend database in > a corrupted state. As mentioned in the man page, halt(8) should not be used for regular shutting down of the system. shutdown(8) is preferred for several reasons, not the least of which is that it will call /etc/rc.shutdown which will (among other things) run through your rc.d scripts in reverse order with the 'stop' argument so that those services get clean shutdowns. If you want to turn the power off as well the -p option exists for this purpose. hth, Doug -- This .signature sanitized for your protection