[OpenSIPS-Users] Some strange things with starting opensips

Anca Vamanu anca at opensips.org
Fri Jan 14 15:37:59 CET 2011


Hi Chris,

You need to set the path to the configuration file.
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).

Regards,

-- 
Anca Vamanu
www.voice-system.ro




On 01/14/2011 06:26 AM, Chris Liu wrote:
> Hi everyone,
>
> We can use opensipsctl start and service opensips start to startup 
> opensips, can anybody show me the different of these two ways?
>
> On my CentOS system, when I use service opensips start 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 opensipsctl start to 
> start the system, /tmp/opensips_fifo and opensips.pid are fine.
>
> But interest thing is seems service opensips start doesn't use the 
> configure file. I changed the name of configure file and try service 
> opensips start, It works with no error! Anybody know which configure 
> file be use by it?
> [root at OpenSIP1/etc/opensips]# mv opensips.cfg opensips.cfg_
> [root at OpenSIP1/etc/opensips]# opensipsctl stop
> INFO: Stopping OpenSIPS :
> INFO: stopped
> [root at OpenSIP1/etc/opensips]# opensipsctl start
> INFO: Starting OpenSIPS :
> INFO: started (pid: 15088)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110114/e16a79a2/attachment-0001.htm>


More information about the Users mailing list