Re: read permission on rotated logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 2019-03-13 at 15:13 -0700, Alice Wonder wrote:
> When logs (e.g. /var/log/maillog) are rotated (e.g. to 
> /var/log/maillog-YYYYMDD) is there a way via systemd or whatever

It's logrotate that does it.

You may want to look at the 'prerotate' and 'postrotate' sections of
the logrotate config files - I'm sure you should be able concoct
something that will do what you want.

P.


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux