From owner-freebsd-questions@FreeBSD.ORG Wed Jan 6 17:03:39 2010 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 A1B741065694 for ; Wed, 6 Jan 2010 17:03:39 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 2D52B8FC0A for ; Wed, 6 Jan 2010 17:03:38 +0000 (UTC) Received: by bwz5 with SMTP id 5so11111554bwz.3 for ; Wed, 06 Jan 2010 09:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=MS5NWksNpzWkxIEwuWozkXbmczrhym277Lb56qSR5D8=; b=hbDjbiFwgYY5hAfqr7g9LOSjZAsCQfHvYb2MTwviNJxkd0G+pKt1YPBCRD0BrdiKme QHUPNmI5Tk7g1HvDP2n08jkZoooS48lejwpU937zFwdKa0zjMblz922Ii/lZvXs/OQP3 6Wdj4NkupDuAzRtrf0dTI8US2V7lAAQt5RLQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=INZplgnVYC2h+HVnr1frT1QOorK1KW4bjfHZdephJ24Bk/c8BtuyDx2zuXTy0vct68 qEnlTSMHGldpkXYzZsD61mXjop06rrT/aXH3v8j5Z3jXyK+mcom83dkguOxNWIJMwy3t GLhnx/R+j0LFM2EVOmwRFfKsCFhQJ3RJ1V4j4= MIME-Version: 1.0 Received: by 10.204.5.198 with SMTP id 6mr1297755bkw.141.1262797410025; Wed, 06 Jan 2010 09:03:30 -0800 (PST) In-Reply-To: <1262797175.5561.9.camel@dasp-laptop> References: <4B44B376.2010005@midsummerdream.org> <4B44B776.9050300@infracaninophile.co.uk> <1262797175.5561.9.camel@dasp-laptop> Date: Wed, 6 Jan 2010 18:03:29 +0100 Message-ID: From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= To: =?ISO-8859-1?B?ROFyaW8gUC4=?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: mysql not starting on 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: Wed, 06 Jan 2010 17:03:39 -0000 About apache, maybe it's the ServerName option that's missing. On Wednesday, January 6, 2010, D=E1rio P. w= rote: > Qua, 2010-01-06 =E0s 16:16 +0000, Matthew Seaman escreveu: >> Rob wrote: >> > Since I upgraded to FreBSD 8.0, I'm noticing that mysql isn't starting >> > on boot anymore. =A0It starts fine once the system has booted, and loo= king >> > at the mysql log I see: >> > >> > 100105 17:46:56 mysqld_safe Starting mysqld daemon with databases from >> > /var/db/m >> > ysql >> > 100105 17:46:56 [ERROR] Can't start server: cannot resolve hostname!: >> > Unknown er >> > ror: 0 >> > 100105 17:46:56 [ERROR] Aborting >> > >> > I use dhcp and ddns in my network, so I'm guessing that mysql is >> > attempting to start before the networking has stabilized. =A0Is there = a >> > way to make mysql be the last thing started at boot? >> >> MySQL will be happy if it can work out what the hostname of the machine >> is. =A0You say you're using ddns? =A0If that means your machines are pus= hing >> a hostname up to the DHCP server while they ask it for an IP number, the= n >> there should be no problem. >> >> You can simply set the hostname in /etc/rc.conf -- it doesn't really >> matter if the machine thinks its name is one thing, and the IPs on its >> network interfaces resolve to something else (at least, not for the >> purposes of running mysql.). =A0The thing you'ld have to look out for ar= e >> the host part of =A0usernames in grants of permissions to users. > > I have exactly the same problem, but with apache. It seems that the > apache try to start before the network. > >> > I tried adding: >> > >> > # REQUIRE: NETWORKING >> > >> > To the init script, but that didn't seem to have any effect. =A0Is the= re a >> > tool that will run through all the init scripts and tell you the order >> > of startup? >> >> rcorder(8) >> >> You might also find it beneficial to use 'SYNCDHCP' instead of plain 'DH= CP' >> in ifconfig_XXY lines in /etc/rc.conf -- this will cause the boot proces= s to >> block on getting an IP for the interface, rather than the default action= of >> backgrounding that process and trying to start everything else up. > > This will be useful for me too. Thank you. > > > _______________________________________________ > freebsd-questions@freebsd.org=A0mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > --=20 Samuel Mart=EDn Moro CamTrace {EPITECH.} tek4 "Nobody wants to say how this works. Maybe nobody knows ..." Xorg.conf(5)