<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
thank you. Maybe you can add it to the tracker or to the wiki, so it
does not get lost in archives and others can review/contribute.<br>
<br>
At some point we probably have to add it to the git and use it for
packaging, but I am not that experienced in the debian distros to
say that it is the must to have with the new releases.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/10/12 9:52 PM, Moacir Ferreira
wrote:<br>
</div>
<blockquote cite="mid:COL125-W4FA8D62D5304EDC7EA80CC8490@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
<font face="Arial">
</font>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
face="Arial">As I posted here before, Ubuntu has moved to
Upstart as the main
engine to start daemons. As a result, Kamailio will fail to
start on boot time because
it starts before MySQL that has already been moved to the
new Upstart daemon
starting fashion.</font></p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"> </p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
face="Arial">I am struggling to get some help from the
Ubuntu community
explaining how we can match the previous init script
behavior when using
Upstart but I got no success till now. Anyway, I have
created an Upstart script
for Kamailio that does most everything that the old script
use to do. However,
in this script I am making sure MySQL starts before
Kamailio. If you have another SQL engine
you must change the script to match your SQL engine by
changing the “start on
started” statement on the script. To use it you have to:</font></p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"> </p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
face="Arial">A – Create a kamailio.conf file at “/etc/init/”
with the
contents of the kamailio.conf script in attach, that is the
new Upstart stile
init script. Please notice that I just adapted the existing
script, no news…</font></p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"> </p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
face="Arial">B – Create a symbolic link at /etc/init.d/
pointing to this
kamailio.conf at /etc/init/.</font></p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"> </p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
face="Arial">C – If you want, you can still have a
/etc/default/kamailio
file like it used to be and the script will behave like it
used to behave when using
the default file.</font></p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"> </p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
face="Arial">Hopefully someone more “influent” at the Ubuntu
community
may get some help on how to adapt their “start on started”
Upstart stanza to
behave like we need for multiple possible SQL engines.</font></p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"> </p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
face="Arial">Cheers!</font></p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"> </p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
face="Arial">Moacir</font></p>
<p style="margin: 0cm 0cm 10pt;" class="MsoNormal"> </p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>