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
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to