From owner-freebsd-questions@FreeBSD.ORG Mon Jun 16 11:37:34 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 AABC9106567F for ; Mon, 16 Jun 2008 11:37:34 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 5984C8FC13 for ; Mon, 16 Jun 2008 11:37:34 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so960560wra.27 for ; Mon, 16 Jun 2008 04:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=F0FLce2aPvUYzUgSyyXp1kcaGeX7AtBZR04hFySFt4M=; b=xhKeCCa2Lij4e3MNA/Rw5u3urX1Ioes8aXApa5MDsH65F78RB0jahDSY6e+tZ7T0NX 0VFf9upU0qmv35pwBWinDQ+mqePjedR0J5EHrfEo7iUoVcKSoB6LPbbef6v3VjKvlsVN xrUBFEuPN1g6qic7q+ZRiBH4sE7Sc344dhico= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=m3cRat05r/5OkR6Y97qEUBs3qABA+Cr1u3bK9tycXwhC/OjuqZX+9oa1GX8Ksqp7Yh 09C5Hx0Jx7+doB5msUYptvS+LcGVtRTRmi4SBB2JOl1JhpK60o4Vy+fQVwLPQO3rsVpI a7RgPe67oI48WRaom3XTwht/n9PttSBZcISPM= Received: by 10.90.83.2 with SMTP id g2mr6807873agb.96.1213614524106; Mon, 16 Jun 2008 04:08:44 -0700 (PDT) Received: from joshua.freebsdgr.org ( [79.129.131.229]) by mx.google.com with ESMTPS id e76sm4971968hse.18.2008.06.16.04.08.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Jun 2008 04:08:43 -0700 (PDT) Message-ID: <485649B8.6040501@gmail.com> Date: Mon, 16 Jun 2008 14:08:40 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.14 (X11/20080609) MIME-Version: 1.0 To: Nicolas Letellier References: <20080616123634.2c5be529.nicolas@nicoelro.net> In-Reply-To: <20080616123634.2c5be529.nicolas@nicoelro.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 11:37:34 -0000 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?