From owner-freebsd-questions@FreeBSD.ORG Tue Dec 4 16:16:40 2007 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 1370516A419 for ; Tue, 4 Dec 2007 16:16:40 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.234]) by mx1.freebsd.org (Postfix) with ESMTP id 4A7D513C455 for ; Tue, 4 Dec 2007 16:16:38 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: by nz-out-0506.google.com with SMTP id l8so2168495nzf for ; Tue, 04 Dec 2007 08:16:36 -0800 (PST) Received: by 10.143.34.11 with SMTP id m11mr297655wfj.1196784995872; Tue, 04 Dec 2007 08:16:35 -0800 (PST) Received: from ?192.168.1.102? ( [67.189.206.211]) by mx.google.com with ESMTPS id 74sm113315wra.2007.12.04.08.16.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 04 Dec 2007 08:16:34 -0800 (PST) Date: Tue, 04 Dec 2007 11:16:53 -0500 From: Gerard Seibert To: freebsd-questions@freebsd.org Organization: Seibercom.net In-Reply-To: <20071204151132.GA1438@torus.slightlystrange.org> References: <200712032204.17941.lists-fbsd@shadypond.com> <20071204151132.GA1438@torus.slightlystrange.org> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20071204111130.3BD3.6621899C@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.43 [en] Cc: Daniel Bye Subject: Re: jabberd will not start on reboot, only starts manually X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2007 16:16:40 -0000 > On December 04, 2007 at 10:11AM Daniel Bye wrote: > On Mon, Dec 03, 2007 at 10:04:16PM +0000, Pollywog wrote: > > I am running FreeBSD 6.2 with Jabberd installed from ports: > > jabberd-2.1.18 > > > > > > When I reboot the machine, jabberd will not start, but it will start if I > > manually restart it with /usr/local/etc/rc.d/jabberd restart > > > > /var/log/messages shows: > > > > jabberd/c2s[989]: mysql: connection to database failed: Can't connect to local > > MySQL server through socket '/tmp/mysql.sock' (2) > > jabberd/c2s[989]: failed to initialize auth module 'mysql' > > > > I added 'mysql' to the REQUIRED line in the startup script for jabberd but > > this did not solve the problem. It still appears as though jabberd attempts > > to connect to mysql before mysql is ready for the connection. > > > > Can anyone assist with this problem? > > Try removing the # BEFORE: LOGIN line from the jabberd control script. > I haven't tested it, but from a cursory glance at the respective control > scripts, it feels like a sane first guess... I had a somewhat similar problem with Postfix+saslauthd+mysql awhile ago. I fixed it by putting a 'sleep 2' statement in the rc.d file of postfix even though I had a "REQUIRED" statement for 'saslauthd' in postfix. It seemed that saslauthd was not always starting up fast enough for postfix to see it. Perhaps you might try something like that with 'jabberd'. I placed the statement immediately after 'KEYWORD'. -- Gerard