<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Jerry,</span></div><div><br><span></span></div><div><span>Make fork= yes that is what it tells, so make it on and my default config is as given below which gives me some logs into /var/log/syslog and if I make debug &gt; 3 i get more logs in the respective location:</span></div><div><br><span></span></div><div><span>debug=3<br>log_stderror=no<br>fork=yes</span></div><div><br><span></span></div><div><span>If you make debug=4 or greater than 4 you should probably get logs into /var/log/syslog</span></div><div>&nbsp;</div><div style="font-family:times new roman, new york, times, serif;font-weight:bold;color:rgb(3, 61, 33);">Regards,<br><br>Aamir Chougule<span class="tab"></span></div><div style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean,
 sans-serif;background-color:transparent;font-style:normal;"><span class="tab"><span style="font-family:times new roman, new york, times, serif;font-weight:bold;text-decoration:underline;color:rgb(3, 61, 33);">Cell: 09167989111</span><br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Jerry Richards &lt;jerry.richards@teotech.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> OpenSIPS users mailling list &lt;users@lists.opensips.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 3 July 2012 2:22 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [OpenSIPS-Users] Cannot Start OpenSIPS With Debug Enabled<br> </font> </div> <br><div id="yiv1416848010">

 
 
<style><!--
#yiv1416848010  
 _filtered #yiv1416848010 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv1416848010 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv1416848010  
#yiv1416848010 p.yiv1416848010MsoNormal, #yiv1416848010 li.yiv1416848010MsoNormal, #yiv1416848010 div.yiv1416848010MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"serif";}
#yiv1416848010 a:link, #yiv1416848010 span.yiv1416848010MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv1416848010 a:visited, #yiv1416848010 span.yiv1416848010MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv1416848010 p.yiv1416848010MsoAcetate, #yiv1416848010 li.yiv1416848010MsoAcetate, #yiv1416848010 div.yiv1416848010MsoAcetate
        {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;font-family:"sans-serif";}
#yiv1416848010 span.yiv1416848010BalloonTextChar
        {font-family:"sans-serif";}
#yiv1416848010 span.yiv1416848010EmailStyle19
        {font-family:"sans-serif";color:#1F497D;}
#yiv1416848010 .yiv1416848010MsoChpDefault
        {font-family:"sans-serif";}
 _filtered #yiv1416848010 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv1416848010 div.yiv1416848010WordSection1
        {}
--></style>

<div>
<div class="yiv1416848010WordSection1">
<div>
<div>
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">I'm having a problem starting opensips with debug enabled (I edited lines in the opensips.cfg file to enable it, as described further below).&nbsp; I'm getting these
 errors:</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> &nbsp;</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:8.0pt;color:black;">[root@ JerryMS-C57 ~]# service opensips start</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:8.0pt;color:black;">Not starting : fork=no specified in config file; run /etc/init.d/opensips debug instead</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:8.0pt;color:black;">[root@ JerryMS-C57 ~]# /etc/init.d/opensips debug</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:8.0pt;color:black;">Not starting : fork=no specified in config file; run /etc/init.d/opensips debug instead</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:8.0pt;color:black;">[root@ JerryMS-C57 ~]#</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> &nbsp;</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">I tried this patch to the
</span><span style="font-size:8.0pt;color:black;">/etc/init.d/opensips</span><span style="font-size:11.0pt;color:#1F497D;"> file, but then it says "</span><span style="font-size:8.0pt;color:black;">Starting
 opensips:</span><span style="font-size:11.0pt;color:#1F497D;"> &nbsp;&nbsp;" and hangs there.</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> &nbsp;</span></div> 
<div class="yiv1416848010MsoNormal" style=""><span style="font-size:8.0pt;"># See how we were called.</span></div> 
<div class="yiv1416848010MsoNormal" style=""><span style="font-size:8.0pt;">case "$1" in</span></div> 
<div class="yiv1416848010MsoNormal" style=""><span style="font-size:8.0pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start|debug)</span></div> 
<div class="yiv1416848010MsoNormal" style=""><span style="font-size:8.0pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # start</span></div> 
<div class="yiv1416848010MsoNormal" style=""><span style="font-size:8.0pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start $1</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> &nbsp;</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">Here's the lines I uncommented in the opensips.cfg file to enable debug:</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> &nbsp;</span></div> 
<div class="yiv1416848010MsoNormal" style=""><span style="font-size:8.0pt;">debug=6</span></div> 
<div class="yiv1416848010MsoNormal" style=""><span style="font-size:8.0pt;">fork=no</span></div> 
<div class="yiv1416848010MsoNormal" style=""><span style="font-size:8.0pt;">log_stderror=yes</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> &nbsp;</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">Thanks,</span></div> 
<div class="yiv1416848010MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">Jerry</span></div> 
</div>
</div>
</div>
</div>

</div><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" 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><br> </div> </div>  </div></body></html>