What I did to overcome this problem was writing a bash script, that
checks if mysql is running, if so, start Kamailio, if not, start mysql
first, then start Kamailio, and retries if things fail. And in
/etc/rc.local, call this script. Seems to work fine on Ubuntu 10.04. Not
tried 12.04 yet.

Yufei
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 13 Nov 2012 18:15:05 -0500
> From: Moacir Ferreira <moacirferre...@hotmail.com>
> Subject: Re: [SR-Users] Returning problem
> To: Kamailio Mail List <sr-users@lists.sip-router.org>
> Message-ID: <col125-w3986ea29065f0966c8ae6c8...@phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> I wish it were that simple... I have done some "reading" and found that 
> Ubuntu has changed to upstart http://upstart.ubuntu.com/cookbook/. However, I 
> could not find how I can start a non "upstart" style init script like 
> Kamailio has before the upstart styled ones... I guess that I have to either 
> to get the Kamailio community to create an upstart script or find some help 
> from the Ubuntu community how to overcome the problem. Anyway, I think the 
> Kamailio team should address it as it will become a problem for everyone 
> using Kamailio on Ubuntu. Any help? Moacir From: 4li...@gmail.com
> To: sr-users@lists.sip-router.org
> Date: Mon, 12 Nov 2012 14:42:31 -0200
> Subject: Re: [SR-Users] Returning problem
>
> This is more a system initialization problem, so, take a look in your
> /etc/rc<run-level>.d directory (or the correspondent one), specially in
> the S* files and find out the start sequence. There You'll find the answer.
>
> Edson.
>
> Em 09/11/2012 17:03, Moacir Ferreira escreveu:
>> My kamailio start script has the following BEGIN INIT INFO:
>>
>> #
>> ### BEGIN INIT INFO
>> # Provides:          kamailio
>> # Required-Start:    $syslog $network $local_fs $time mysql
>> # Required-Stop:     $syslog $network $local_fs mysql
>> # Default-Start:     2 3 4 5
>> # Default-Stop:      0 1 6
>> # Should-Start:      postgresql mysql radius
>> # Should-Stop:       postgresql mysql radius
>> # Short-Description: Start the Kamailio SIP proxy server
>> # Description:       Start the Kamailio SIP proxy server
>> ### END INIT INFO
>>
>> However, when I boot my server Kamailio will start before mysql. So,
>> after boot I can start Kamalio but at boot time it will fail.
>>
>> Any hints how to fix it? I am running Ubuntu server 12.04 LTS - 64 bits.
>> All the code has been compiled at the server.
>>
>> Cheers!
>>
>> Moacir
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.sip-router.org/pipermail/sr-users/attachments/20121113/cf13d83a/attachment-0001.htm>
>
> ------------------------------
>
> _______________________________________________
> sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> End of sr-users Digest, Vol 90, Issue 39
> ****************************************

--
Yufei Tao
Red Embedded

This E-mail and any attachments hereto are strictly confidential and intended 
solely for the addressee. If you are not the intended addressee please notify 
the sender by return and delete the message.

You must not disclose, forward or copy this E-mail or attachments to any third 
party without the prior consent of the sender.

Red Embedded Design, Company Number 06688253 Registered in England: The 
Waterfront, Salts Mill Rd, Saltaire, BD17 7EZ

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to