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

Elan Ruusamäe glen at pld-linux.org
Thu Oct 15 20:52:12 CEST 2015


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?

-- 
glen



More information about the pld-devel-en mailing list