<font face="verdana,sans-serif">Ok, but it any case, the script should return 1 if opensips failed to initialize; i'm thinking to build a HA infraestructure with opensips (heartbeat, cluster glue...) and this opensips init script behavior seems not to be <span class="hps" title="Haz clic para obtener otras posibles traducciones">appropriate; i will have to take a deeper look at the opensips.init script</span> <br>
</font><br><div class="gmail_quote">2011/6/6 Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:andrew.pogrebennyk@portaone.com">andrew.pogrebennyk@portaone.com</a>></span><br><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">
<div class="im">On 06.06.2011 14:15, Toyima Dias wrote:<br>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">
If opensips has not started (ps -ef | grep opensips doesn't show any<br>
opensips pid), how is possible that /etc/init.d/opensips returns [OK]<br>
when you execute /etc/init.d/opensips restart...is this beacuse of<br>
mysql? is that what you mean...this script should return 1 (not<br>
succesfull, different than 0) it no pid file has been created, am i right?<br>
</blockquote>
<br></div>
Correct, but there can be a case when opensips starts but then some module's initialization function fails due to mysql connect error or incompatible table version and the opensips will exit.<br>
<br>
-- <br>
Sincerely,<br><font color="#888888">
Andrew Pogrebennyk</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>