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

Rick Aldred eazilyled at yahoo.co.uk
Tue Apr 12 14:19:33 CEST 2011


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 for NAT traversal, maybe I should also add this a 
required service, although it has worked without that so far.

Regards,
Rick

________________________________
From: Klaus Darilion <klaus.mailinglists at pernau.at>
To: miconda at gmail.com; SIP Router - Kamailio (OpenSER) and SIP Express Router 
(SER) - Users Mailing List <sr-users at lists.sip-router.org>
Cc: Rick Aldred <eazilyled at yahoo.co.uk>
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.
> 


That's a bug in the init script of Kamailio:


IIRC:


/etc/init.d/kamailio (add mysql):

# Required-Start:    $syslog $network $local_fs $time mysql
# Required-Stop:    $syslog $network $local_fs mysql




# re-create symlinks:
update-rc.d kamailio defaults




More information about the sr-users mailing list