[OpenSIPS-Devel] ?????? ?????? opensips log file dose not work

2016-09-22 Thread ??
thank you Liviu,I have figure it out. The Selinux prevent the rsyslog write to other directory except "/var/log/". You can disable Selinux or config your directory I config and make it work use : chcon --reference /var/log/ /export/opensips/log/ --

Re: [OpenSIPS-Devel] 回复: opensips log file dose not work

2016-09-22 Thread Liviu Chircu
My bad. I just noticed you did the restart command. The (currently) most reasonable explanation is that rsyslog cannot create the file, since it runs as "syslog" IIRC. Can you manually ensure "/export/opensips/log/opensips.log" exists, and have the same permissions as "/var/log/opensips.log"

Re: [OpenSIPS-Devel] 回复: opensips log file dose not work

2016-09-22 Thread Liviu Chircu
Maybe you forgot to reload/restart the rsyslog daemon? Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 22.09.2016 15:15, 龙 wrote: Hi Liviu: thanks for your suggestion。 I‘m sure the file and the directory has -rwxrwxrwx permissions andI use root did it with opensips2.2.1

[OpenSIPS-Devel] ?????? opensips log file dose not work

2016-09-22 Thread ??
Hi Liviu?? thanks for your suggestion?? I??m sure the file and the directory has -rwxrwxrwx permissions and I use root did it with opensips2.2.1 and centos6.6?? I make /var/log/opensips.log work as following?? touch /var/log/opensips.log add ??

Re: [OpenSIPS-Devel] opensips log file dose not work

2016-09-22 Thread Liviu Chircu
Hi! If you made "/var/log/opensips.log" work, then please ensure write permissions on "/export/opensips/log/" for the user you're running OpenSIPS with, so it can create the file. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 22.09.2016 09:37, 龙 wrote: hi everone:

[OpenSIPS-Devel] opensips log file dose not work

2016-09-22 Thread ??
hi everone: I want change opensips log file location ,and I make it work in /var/log/opensips.log but when change the directory to an /export/opensips/log/opensips.log it dose not work. I don't kown why. does it has samething else to do? I need your