From owner-freebsd-questions@FreeBSD.ORG Mon Jun 16 13:35:05 2008 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 6D2911065674 for ; Mon, 16 Jun 2008 13:35:05 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: from mail.nicoelro.net (helm.nicoelro.net [87.98.216.147]) by mx1.freebsd.org (Postfix) with ESMTP id 2C27E8FC15 for ; Mon, 16 Jun 2008 13:35:04 +0000 (UTC) (envelope-from nicolas@nicoelro.net) Received: by mail.nicoelro.net (Postfix, from userid 58) id 0C386792B9; Mon, 16 Jun 2008 15:35:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on helm.nicoelro.net X-Spam-Level: X-Spam-Status: No, score=-3.5 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from orthanc (ALyon-253-1-118-34.w83-205.abo.wanadoo.fr [83.205.53.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nicolas@nicoelro.net) by mail.nicoelro.net (Postfix) with ESMTP id 0DEE478DC5; Mon, 16 Jun 2008 15:35:02 +0200 (CEST) Date: Mon, 16 Jun 2008 15:35:01 +0200 From: Nicolas Letellier To: Manolis Kiagias Message-Id: <20080616153501.266a809b.nicolas@nicoelro.net> In-Reply-To: <485649B8.6040501@gmail.com> References: <20080616123634.2c5be529.nicolas@nicoelro.net> <485649B8.6040501@gmail.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: problem with dovecot and mysql at boot 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: Mon, 16 Jun 2008 13:35:05 -0000 On Mon, 16 Jun 2008 14:08:40 +0300 Manolis Kiagias wrote: > Nicolas Letellier wrote: > > Hello. > > > > In my rc.conf, I have: > > dovecot_enable="YES" > > mysql_enable="YES" > > > > At boot, I have this error: > > Jun 16 12:34:16 trinite dovecot: auth-worker(default): mysql: Connect failed to localhost (panel): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) - waiting for 1 seconds before retry > > > > I think it's because mysql is started after dovecot. How resolve this, and specify to launch dovecot after mysql is running? > > > > Best regards, > > > > > > Are you sure this is what's happening? I have mysql and dovecot, and > dovecot starts after mysql in my system. > Try something like > > rcorder /etc/rc.d/* /usr/local/etc/rc.d/* > > or > > dmesg -a |more > > to see the startup order. Do you actually have to start it by hand after > boot, or does it really start on the retry? Ok, the problem is due to my my.cnf. However, I cannot explain which value of this file causes this problem. I deleted it, and after reboot, the probleme has disapeared. I re-cp it, and reboot, and the problem was not here. I think sometimes, and with my.cnf options, mysql is too slow to be launched, and then, dovecot and others applications could have a problem. So, I cannot explain this problem. On the other hand, it was not -big- problem, just a warning. -- -Nicolas.