I have an HA setup with Pacemaker using heartbeat stack.<br><br>I created a script that monitors opensips via the pid file. Eventhough the start event succeed and then opensips crash due to a module. The next monitor round will report an error, and the resource would be migrated to the  next node.<br>
<br>I don&#39;t think the start stop daemon utility used to bring up opensips would succeed, and then opensips would crash starting the modules.<br><br><div class="gmail_quote">On Mon, Jun 6, 2011 at 10:44 AM, Toyima Dias <span dir="ltr">&lt;<a href="mailto:toyimads@gmail.com">toyimads@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font face="verdana,sans-serif">Ok, but it any case, the script should return 1 if opensips failed to initialize; i&#39;m thinking to build a HA infraestructure with opensips (heartbeat, cluster glue...) and this opensips init script behavior seems not to be <span 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><div><div></div><div class="h5"><br><div class="gmail_quote">2011/6/6 Andrew Pogrebennyk <span dir="ltr">&lt;<a href="mailto:andrew.pogrebennyk@portaone.com" target="_blank">andrew.pogrebennyk@portaone.com</a>&gt;</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>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&#39;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&#39;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><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>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Robert<br>