<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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" cols="72">--
Anca Vamanu
<a class="moz-txt-link-abbreviated" 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 cite="mid:899761.51481.qm@web44707.mail.sp1.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<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>
</body>
</html>