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 <[email protected]> To: [email protected] 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@OpenSIP1/etc/opensips]# mv opensips.cfg opensips.cfg_ >[root@OpenSIP1/etc/opensips]# opensipsctl stop >INFO: Stopping OpenSIPS : >INFO: stopped >[root@OpenSIP1/etc/opensips]# opensipsctl start >INFO: Starting OpenSIPS : >INFO: started (pid: 15088) >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
