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@pernau.at To: miconda@gmail.com; SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List sr-users@lists.sip-router.org Cc: Rick Aldred eazilyled@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