[Samba] missing file in logrotate config
Michael Tokarev
mjt at tls.msk.ru
Wed Dec 6 11:13:26 UTC 2023
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.
I guess one of the way to handle it is to specify something like
log.rpcd_*[^0-9z] (z from .gz or .xz suffix).
Or to list all of them explicitly.
I'll go the latter way in the next upload of samba debian packages.
/mjt
More information about the samba
mailing list