Hi list, This is my first post to this list. I'm not exactly new to freebsd but I have used GNU/Linux more. Last week I installed my first FreeBSD 7.1 machine. A base system with only mc, mysql and mydns-mysql packages. I installed all from pre compiled packages, not from ports. When I reboot the machine the mysql server is not finished starting before mydns tries to start, so it fails leaving me with a not working DNS server. I have to manually start mydns-mysql. As a very ugly fix I have edited the startup script for mydns-mysql and added a 10 sec delay. I wonder what else I can do. Should I perhaps contact the port maintainer? How do I reach him/her? TIA, Mikael Bak Budapest, Hungary
I'll see if I'm still maintainer and see if there's a better way of doing things. -----Original Message----- From: Mikael Bak <mikael@t-online.hu> Sent: 17 January 2009 19:20 To: freebsd-stable@freebsd.org Subject: mydns-mysql starts before mysql has finished starting Hi list, This is my first post to this list. I'm not exactly new to freebsd but I have used GNU/Linux more. Last week I installed my first FreeBSD 7.1 machine. A base system with only mc, mysql and mydns-mysql packages. I installed all from pre compiled packages, not from ports. When I reboot the machine the mysql server is not finished starting before mydns tries to start, so it fails leaving me with a not working DNS server. I have to manually start mydns-mysql. As a very ugly fix I have edited the startup script for mydns-mysql and added a 10 sec delay. I wonder what else I can do. Should I perhaps contact the port maintainer? How do I reach him/her? TIA, Mikael Bak Budapest, Hungary _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
Alfred Perlstein
2009-Jan-17 12:22 UTC
mydns-mysql starts before mysql has finished starting
Hey Mikael, Thank you for your feedback. To find out a port's maintainer, you can look into the makefile under CVS: http://www.freebsd.org/cgi/cvsweb.cgi/ports/dns/mydns/Makefile It looks to be: MAINTAINER= ale@FreeBSD.org If you don't a get a response from this developer, then try the generic "ports@freebsd.org" address. As far as fixing the problem, I think a trick might be to do something like this: while /etc/rc.d/mysql status = up && mydns == exit failure ... You might want to fork off the process to do this so if mysql hangs then your startup script doesn't hang the boot sequence waiting for it.. -Alfred * Mikael Bak <mikael@t-online.hu> [090117 11:38] wrote:> Hi list, > > This is my first post to this list. > I'm not exactly new to freebsd but I have used GNU/Linux more. > > Last week I installed my first FreeBSD 7.1 machine. A base system with > only mc, mysql and mydns-mysql packages. I installed all from pre > compiled packages, not from ports. > > When I reboot the machine the mysql server is not finished starting > before mydns tries to start, so it fails leaving me with a not working > DNS server. I have to manually start mydns-mysql. > > As a very ugly fix I have edited the startup script for mydns-mysql and > added a 10 sec delay. > > I wonder what else I can do. Should I perhaps contact the port > maintainer? How do I reach him/her? > > TIA, > Mikael Bak > Budapest, Hungary > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"-- - Alfred Perlstein
Andrew Thompson
2009-Jan-17 12:29 UTC
mydns-mysql starts before mysql has finished starting
On Sat, Jan 17, 2009 at 08:20:04PM +0100, Mikael Bak wrote:> Hi list, > > This is my first post to this list. > I'm not exactly new to freebsd but I have used GNU/Linux more. > > Last week I installed my first FreeBSD 7.1 machine. A base system with > only mc, mysql and mydns-mysql packages. I installed all from pre > compiled packages, not from ports. > > When I reboot the machine the mysql server is not finished starting > before mydns tries to start, so it fails leaving me with a not working > DNS server. I have to manually start mydns-mysql. > > As a very ugly fix I have edited the startup script for mydns-mysql and > added a 10 sec delay. > > I wonder what else I can do. Should I perhaps contact the port > maintainer? How do I reach him/her?http://www.freshports.org/dns/mydns/ (see Maintained by:) Andrew