Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-05-30 Thread Henning Westerholt
On Wednesday 13 April 2011, Rick Aldred wrote: Maybe the fix would be to include mysql under 'Should-Start' (and 'Should-Stop') in the LSB header. That way mysql will be started if it is present, but not prevent Kamailio from starting if it is not. There is actually already a commented

Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-04-13 Thread Klaus Darilion
...@pernau.at To: mico...@gmail.com; SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing Listsr-users@lists.sip-router.org Cc: Rick Aldredeazily...@yahoo.co.uk Sent: Tue, 12 April, 2011 13:03:09 Subject: Re: [SR-Users] Kamailio service not starting on reboot when using mysql

Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-04-13 Thread Daniel-Constantin Mierla
On 4/13/11 10:31 AM, Klaus Darilion wrote: On 12.04.2011 14:19, Rick Aldred wrote: Thanks Klaus (and Daniel). That has solved my problem. I had just discovered the LSB header configuration in the init.d script but was missing the update-rc.d call, so thank you! Since I am using

Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-04-13 Thread Klaus Darilion
On 13.04.2011 10:48, Daniel-Constantin Mierla wrote: On 4/13/11 10:31 AM, Klaus Darilion wrote: On 12.04.2011 14:19, Rick Aldred wrote: Thanks Klaus (and Daniel). That has solved my problem. I had just discovered the LSB header configuration in the init.d script but was missing the

Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-04-13 Thread Henning Westerholt
On Wednesday 13 April 2011, Klaus Darilion wrote: Maybe someone that knows the right format can send a patch to get the init.d script to the proper LSB header - even better, commit the fix if someone with git write access knows the format. I think the problem is not the proper format, but

Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-04-13 Thread Rick Aldred
10:30:45 Subject: Re: [SR-Users] Kamailio service not starting on reboot when using mysql database On Wednesday 13 April 2011, Klaus Darilion wrote: Maybe someone that knows the right format can send a patch to get the init.d script to the proper LSB header - even better, commit the fix

Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-04-12 Thread Daniel-Constantin Mierla
Hello, On 4/12/11 11:34 AM, Rick Aldred wrote: I have set up kamailio 3.1.2 on an install of Debian Squeeze, using the default config but with the following defines enabled: WITH_MYSQL WITH_AUTH WITH_USRLOCDB WITH_NAT Everything works as expected when starting Kamailio from a terminal, e.g.

Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-04-12 Thread federico cabiddu
Hi, from the log you pasted is clear that the problem is that kamailio is starting before mysql. This because, as you said, they have the same priority and so, being the starting order alphabetical for the same priority, kamailio will start before mysql and cannot connect to mysql which is still

Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-04-12 Thread Klaus Darilion
the logs shows that the mysql server is started after kamailio. Be sure you set the order at startup to run mysql first, maybe google helps to find the proper way. That's a bug in the init script of Kamailio: IIRC: /etc/init.d/kamailio (add mysql): # Required-Start:$syslog $network

Re: [SR-Users] Kamailio service not starting on reboot when using mysql database

2011-04-12 Thread Rick Aldred
Sent: Tue, 12 April, 2011 13:03:09 Subject: Re: [SR-Users] Kamailio service not starting on reboot when using mysql database the logs shows that the mysql server is started after kamailio. Be sure you set the order at startup to run mysql first, maybe google helps to find the proper way