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

2011-04-12 Thread Rick Aldred
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_MYSQLWITH_AUTHWITH_USRLOCDBWITH_NAT Everything works as expected when starting Kamailio from a terminal, e.g.service kamailio start But after a reboot, the service f

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. s

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 no

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 $netw

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

2011-04-12 Thread Rick Aldred
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. > That's a bug in the init script of Kamailio: IIRC: /et

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

2011-04-13 Thread Klaus Darilion
...@gmail.com; SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Cc: 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

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 rtpproxy

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 upda

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 form

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

2011-04-13 Thread Rick Aldred
those used with the Should-Start keyword. Regards, Rick - Original Message From: Henning Westerholt To: sr-users@lists.sip-router.org Cc: Klaus Darilion ; "mico...@gmail.com" ; Rick Aldred Sent: Wed, 13 April, 2011 10:30:45 Subject: Re: [SR-Users] Kamailio service not starti

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 commen