logrotate: skip if empty and remove old variants

Many variants are never built anymore. Clean actions to just those still
shipped. But do not trigger named reload when named.run file is empty.
That is common on freeipa installation, where configuration changes
logging to put it elsewhere. named reload is disruptive because how
bind-dyndb-ldap behaves during reloads. Avoid unnecessary reloads with
visible service disruption.

Keep named-pkcs11 reload variant.

Resolves: RHEL-113942
This commit is contained in:
Petr Menšík 2025-09-05 15:21:19 +02:00
parent 8f4a1161b8
commit 4a05d2d777
2 changed files with 5 additions and 3 deletions

View File

@ -56,7 +56,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind
License: MPLv2.0
Version: 9.16.23
Release: 32%{?dist}
Release: 33%{?dist}
Epoch: 32
Url: https://www.isc.org/downloads/bind/
#
@ -1235,6 +1235,9 @@ fi;
%endif
%changelog
* Fri Sep 12 2025 Petr Menšík <<pemensik@redhat.com>> - 32:9.16.23-33
- logrotate: skip if empty and remove old variants (RHEL-113942)
* Wed Sep 03 2025 Petr Menšík <pemensik@redhat.com> - 32:9.16.23-31
- Decode IDN names on input in all situations in utilities (RHEL-66172)

View File

@ -2,11 +2,10 @@
missingok
su named named
create 0644 named named
notifempty
postrotate
/usr/bin/systemctl reload named.service > /dev/null 2>&1 || true
/usr/bin/systemctl reload named-chroot.service > /dev/null 2>&1 || true
/usr/bin/systemctl reload named-sdb.service > /dev/null 2>&1 || true
/usr/bin/systemctl reload named-sdb-chroot.service > /dev/null 2>&1 || true
/usr/bin/systemctl reload named-pkcs11.service > /dev/null 2>&1 || true
endscript
}