[Samba] missing file in logrotate config
Stefan G. Weichinger
lists at xunil.at
Wed Dec 6 12:31:43 UTC 2023
On 06.12.23 12:13, Michael Tokarev wrote:
> 06.12.2023 10:01, Stefan G. Weichinger via samba:
>
>> /var/log/samba/log.rpcd_* {
>
>> log.rpcd_spoolss
>> log.rpcd_spoolss.1
>> log.rpcd_spoolss.1.1
>> log.rpcd_spoolss.1.1.1
>> log.rpcd_spoolss.1.1.1.1
>
> This seems to be a limitation/defect of logrotate itself.
> At first you had just log.rpcd_spoolss, and at first logrotate run
> it rotated it to log.rpcd_spoolss.1, - now you have 2 files - this
> rotated one and new log.rpcd_spoolss. Now there are two files which
> are covered by the above mask (log.rpcd_*), - so logrotate will try
> to rotate both of them.
It's obvious now that you tell me ... didn't consider that before.
> I guess one of the way to handle it is to specify something like
> log.rpcd_*[^0-9z] (z from .gz or .xz suffix).
Will try that, thanks.
More information about the samba
mailing list