<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:10pt">Hi Anca,<br><br>Thank you very much , i add this line to /etc/opensips/opensipsctlrc <br><br>STARTOPTIONS=" -f /etc/opensips/opensips.cfg"<br><br><span style="color: rgb(0, 0, 255); font-weight: bold;">opensipsctl start</span> use this configure file now. Thanks<br><br>Do you know why I start with <span style="color: rgb(0, 0, 255);">/etc/init.d/opensips start </span>, there is no opensips.pid in /var/run ?<br><br>Regards,<br><br>Chris<br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Anca Vamanu
<anca@opensips.org><br><b><span style="font-weight: bold;">To:</span></b> users@lists.opensips.org<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, January 14, 2011 9:37:59 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [OpenSIPS-Users] Some strange things with starting opensips<br></font><br>
Hi Chris,<br>
<br>
You need to set the path to the configuration file.<br>
You should edit file opensipsctlrc ( localed in etc/opensips/ ) and
set STARTOPTIONS=" -f /etc/opensips/opensips.cfg" ( replace with the
path to your configuration file).<br>
<br>
Regards,<br>
<pre class="moz-signature">-- <br>Anca Vamanu<br><a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="http://www.voice-system.ro">www.voice-system.ro</a></pre>
<br>
<br>
<br>
On 01/14/2011 06:26 AM, Chris Liu wrote:
<blockquote type="cite">
<div style="font-family: times new roman,new york,times,serif; font-size: 10pt;">
<div>Hi everyone,<br>
<br>
We can use <span style="color: rgb(0, 0, 255); font-weight: bold;">opensipsctl start</span> and <span style="color: rgb(0, 0, 255); font-weight: bold;">service opensips start</span>
to startup opensips, can anybody show me the different of
these two ways?<br>
<br>
On my CentOS system, when I use <span style="color: rgb(0, 0, 255); font-weight: bold;">service opensips start </span>tostartup
the system, no opensips.pid in /var/run and I can find
/tmp/opensips_fifo but it will disapear in about 10 mins. If I
use <span style="color: rgb(0, 0, 255); font-weight: bold;">opensipsctl
start</span> to start the system, /tmp/opensips_fifo and
opensips.pid are fine.<br>
<br>
But interest thing is seems <span style="color: rgb(0, 0, 255); font-weight: bold;">service opensips start </span>doesn't
use the configure file. I changed the name of configure file
and try <span style="color: rgb(0, 0, 255); font-weight: bold;">service opensips start</span>, It works with no
error! Anybody know which configure file be use by it?<br>
[root@OpenSIP1/etc/opensips]# mv opensips.cfg opensips.cfg_<br>
[root@OpenSIP1/etc/opensips]# opensipsctl stop<br>
INFO: Stopping OpenSIPS : <br>
INFO: stopped<br>
[root@OpenSIP1/etc/opensips]# opensipsctl start<br>
INFO: Starting OpenSIPS : <br>
INFO: started (pid: 15088)<br>
</div>
</div>
</blockquote>
</div></div>
</div><br></body></html>