[packages/syslog-ng] - cron daemons log through syslog - syslog packages own cron log file and rotate it

Bartek Szady bszx-pld at bszx.eu
Thu Oct 15 21:36:20 CEST 2015



On 10/15/15 20:52, Elan Ruusamäe wrote:
> On 15.10.2015 16:16, bszx wrote:
>
>
>
> ...
>> -%attr(640,root,root) %ghost /var/log/syslog
>> -%attr(640,root,root) %ghost /var/log/user
>> -%attr(640,root,root) %ghost /var/log/xferlog
>> +%attr(640,root,logs) %ghost /var/log/cron
> ...
>> +%attr(640,root,logs) %ghost /var/log/secure
>> +%attr(640,root,logs) %ghost /var/log/spooler
>> +%attr(640,root,logs) %ghost /var/log/syslog
> ...
>
>> --- a/syslog-ng.conf
>> +++ b/syslog-ng.conf
>> @@ -43,7 +43,7 @@ destination d_authlog    { file("/var/log/secure"); };
>>   destination d_mail    { file("/var/log/maillog"); };
>>   destination d_uucp    { file("/var/log/spooler"); };
>>   destination d_debug    { file("/var/log/debug"); };
>> -destination d_cron    { file("/var/log/cron" owner(root) 
>> group(crontab) perm(0660)); };
>> +destination d_cron    { file("/var/log/cron"); };
>
> correct me if i'm wrong, but
>
> you kind of conflicting setup you have here:
>
> - in rpm you have 640,root,logs,
> - but in syslog.conf your have 644,root,root?

Default owner, group and permissions are set earlier in options:

options {
...
         owner(root);
         group(logs);
         perm(0640);
....
};

Bartek



More information about the pld-devel-en mailing list