Re: jabberd will not start on reboot, only starts manually

2007-12-04 Thread Daniel Bye
On Mon, Dec 03, 2007 at 10:04:16PM +, Pollywog wrote:
 I am running FreeBSD 6.2 with Jabberd installed from ports:
 jabberd-2.1.18
 
 
 When I reboot the machine, jabberd will not start, but it will start if I 
 manually restart it with /usr/local/etc/rc.d/jabberd restart
 
 /var/log/messages shows:
 
 jabberd/c2s[989]: mysql: connection to database failed: Can't connect to 
 local 
 MySQL server through socket '/tmp/mysql.sock' (2)
 jabberd/c2s[989]: failed to initialize auth module 'mysql'
 
 I added 'mysql' to the REQUIRED line in the startup script for jabberd but 
 this did not solve the problem.  It still appears as though jabberd attempts 
 to connect to mysql before mysql is ready for the connection.
 
 Can anyone assist with this problem?

Try removing the # BEFORE: LOGIN line from the jabberd control script.
I haven't tested it, but from a cursory glance at the respective control
scripts, it feels like a sane first guess...

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpQ83qp4MHpn.pgp
Description: PGP signature


Re: jabberd will not start on reboot, only starts manually

2007-12-04 Thread Gerard Seibert
 On December 04, 2007 at 10:11AM Daniel Bye wrote:

 On Mon, Dec 03, 2007 at 10:04:16PM +, Pollywog wrote:
  I am running FreeBSD 6.2 with Jabberd installed from ports:
  jabberd-2.1.18
  
  
  When I reboot the machine, jabberd will not start, but it will start if I 
  manually restart it with /usr/local/etc/rc.d/jabberd restart
  
  /var/log/messages shows:
  
  jabberd/c2s[989]: mysql: connection to database failed: Can't connect to 
  local 
  MySQL server through socket '/tmp/mysql.sock' (2)
  jabberd/c2s[989]: failed to initialize auth module 'mysql'
  
  I added 'mysql' to the REQUIRED line in the startup script for jabberd but 
  this did not solve the problem.  It still appears as though jabberd 
  attempts 
  to connect to mysql before mysql is ready for the connection.
  
  Can anyone assist with this problem?
 
 Try removing the # BEFORE: LOGIN line from the jabberd control script.
 I haven't tested it, but from a cursory glance at the respective control
 scripts, it feels like a sane first guess...

I had a somewhat similar problem with Postfix+saslauthd+mysql awhile ago. I
fixed it by putting a 'sleep 2' statement in the rc.d file of postfix even
though I had a REQUIRED statement for 'saslauthd' in postfix. It seemed that
saslauthd was not always starting up fast enough for postfix to see it.
Perhaps you might try something like that with 'jabberd'.  I placed the
statement immediately after 'KEYWORD'.


-- 
Gerard
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: jabberd will not start on reboot, only starts manually

2007-12-04 Thread Pollywog
On Tuesday 04 December 2007 15:11:32 Daniel Bye wrote:


 Try removing the # BEFORE: LOGIN line from the jabberd control script.
 I haven't tested it, but from a cursory glance at the respective control
 scripts, it feels like a sane first guess...

What exactly does this do?  It worked.

I first tried adding 'sleep 2' to the script as suggested in another reply.  I 
thought that would work, but it did not.

thanks to all who replied.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: jabberd will not start on reboot, only starts manually

2007-12-04 Thread Daniel Bye
On Tue, Dec 04, 2007 at 06:06:00PM +, Pollywog wrote:
 On Tuesday 04 December 2007 15:11:32 Daniel Bye wrote:
 
 
  Try removing the # BEFORE: LOGIN line from the jabberd control script.
  I haven't tested it, but from a cursory glance at the respective control
  scripts, it feels like a sane first guess...
 
 What exactly does this do?  It worked.
 
 I first tried adding 'sleep 2' to the script as suggested in another reply.  
 I 
 thought that would work, but it did not.
 
 thanks to all who replied.

Check out the manual for rcorder(8), and look at the CAPITALISED files in
/etc/rc.d. 

Essentially, LOGIN is a dummy service - it is used to control startup 
of services that should start late in the boot process. The jabberd control
script told rcorder(8) that it should run *before* the LOGIN service,
but the MySQL control script tells rcorder(8) that it wants to run
*after* the LOGIN service. So although you had REQUIRE: mysql in jabberd's
script, it was still getting run before MySQL. I guess. ;-)

You can determine what order things get run by doing

 # rcorder /etc/rc.d/* /usr/local/etc/rc.d/*

Anyway, glad it worked. You might want to get in touch with the jabberd
maintainer and see if he is willing to make the change permanent.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpn564oY0mJv.pgp
Description: PGP signature


Re: jabberd will not start on reboot, only starts manually

2007-12-04 Thread Pollywog
On Tuesday 04 December 2007 18:28:42 Daniel Bye wrote:


 Check out the manual for rcorder(8), and look at the CAPITALISED files in
 /etc/rc.d.

 Essentially, LOGIN is a dummy service - it is used to control startup
 of services that should start late in the boot process. The jabberd control
 script told rcorder(8) that it should run *before* the LOGIN service,
 but the MySQL control script tells rcorder(8) that it wants to run
 *after* the LOGIN service. So although you had REQUIRE: mysql in jabberd's
 script, it was still getting run before MySQL. I guess. ;-)

 You can determine what order things get run by doing

  # rcorder /etc/rc.d/* /usr/local/etc/rc.d/*

 Anyway, glad it worked. You might want to get in touch with the jabberd
 maintainer and see if he is willing to make the change permanent.

Thanks for the explanation.  I had gone to the ##freebsd channel on Freenode 
for help and had been told to run 

# rcorder /etc/rc.d/* /usr/local/etc/rc.d/*

This showed that I had succeeded in getting jabber to start after mysql, but 
things were still not working properly.  I will email the jabberd maintainer 
about my experience.

8)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


jabberd will not start on reboot, only starts manually

2007-12-03 Thread Pollywog
I am running FreeBSD 6.2 with Jabberd installed from ports:
jabberd-2.1.18


When I reboot the machine, jabberd will not start, but it will start if I 
manually restart it with /usr/local/etc/rc.d/jabberd restart

/var/log/messages shows:

jabberd/c2s[989]: mysql: connection to database failed: Can't connect to local 
MySQL server through socket '/tmp/mysql.sock' (2)
jabberd/c2s[989]: failed to initialize auth module 'mysql'

I added 'mysql' to the REQUIRED line in the startup script for jabberd but 
this did not solve the problem.  It still appears as though jabberd attempts 
to connect to mysql before mysql is ready for the connection.

Can anyone assist with this problem?

thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]