[jadmin] Jabber on FreeBSD: jabber didn't start with error pointing to non existing mysql.sock

Timm Wimmers timm at ticore.de
Sun May 20 05:33:49 CDT 2007


Hallo,

I enabled jabberd autostart with 'jabberd_enable="YES"' in rc.conf. It
will try to run, but the log of sm and c2s says:

[error] mysql: connection to database failed: Can't connect to local
MySQL server through socket '/tmp/mysql.sock' (2)

But the sock is there (after booting is complete), and if I run the
script manually immediately after booting all went fine.

It looks like that rc runs the jabberd script before mysql-server, but a
'rcorder /usr/local/etc/rc.d/*' gives the following output:

-- snip --
rcorder: requirement `DAEMON' in file
`/usr/local/etc/rc.d/openvpn' has no providers.
/usr/local/etc/rc.d/openvpn

rcorder: requirement `LOGIN' in file
`/usr/local/etc/rc.d/mysql-server' has no providers.
/usr/local/etc/rc.d/mysql-server

rcorder: requirement `DAEMON' in file
`/usr/local/etc/rc.d/jabberd' has no providers.
/usr/local/etc/rc.d/jabberd

rcorder: requirement `DAEMON' in file
`/usr/local/etc/rc.d/mu-conference' has no providers.
/usr/local/etc/rc.d/mu-conference

rcorder: requirement `cleanvar' in file
`/usr/local/etc/rc.d/apache22' has no providers.

rcorder: requirement `LOGIN' in file
`/usr/local/etc/rc.d/apache22' has no providers.
/usr/local/etc/rc.d/apache22
-- snap --

We can see, that mysql runs before jabberd. Mhpf!

So - now I think, the mysql-server didn't create the mysql.sock fast
enough and the jabberd script runs to early or something like that.

My question: How do I tell the jabberd startupscript to wait for mysql
is completely up and running?

Putting in a "mysql" at the REQUIRE statement in the jabberd
startupscript didn't solve the problem.

Any help can help. :)

Thank you.

-- 
Timm






More information about the JAdmin mailing list