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:
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 ?? local0.*
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 an
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" ?
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/
--