[OpenSIPS-Users] Some strange things with starting opensips

Chris Liu cachris68 at yahoo.ca
Fri Jan 14 16:20:30 CET 2011


Hi Anca,

Thank you very much , i add this line to /etc/opensips/opensipsctlrc            

STARTOPTIONS=" -f /etc/opensips/opensips.cfg"

opensipsctl start use this configure file now. Thanks

Do you know why I start with /etc/init.d/opensips start  , there is no 
opensips.pid in /var/run ?

Regards,

Chris





________________________________
From: Anca Vamanu <anca at opensips.org>
To: users at lists.opensips.org
Sent: Fri, January 14, 2011 9:37:59 AM
Subject: Re: [OpenSIPS-Users] Some strange things with starting opensips

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/2dffd29f/attachment.htm>


More information about the Users mailing list