Date: Wed, 6 Jan 2010 18:03:29 +0100 From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= <faust64@gmail.com> To: =?ISO-8859-1?B?ROFyaW8gUC4=?= <fbsd.questions.list@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: mysql not starting on boot Message-ID: <ce5f79aa1001060903g47659a5s563a3fa391a6cfb5@mail.gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
About apache, maybe it's the ServerName option that's missing. On Wednesday, January 6, 2010, D=E1rio P. <fbsd.questions.list@gmail.com> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ce5f79aa1001060903g47659a5s563a3fa391a6cfb5>