public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ntpsec] epel9: use systemctl kill in logrotate postrotate script (#2372534)
@ 2026-10-21 11:01 Miroslav Lichvar
  0 siblings, 0 replies; only message in thread
From: Miroslav Lichvar @ 2026-10-21 11:01 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ntpsec
Branch : epel9
Commit : 3663d5b17d33dbc3357c0a2bcce3d4f06cb10aa4
Author : Miroslav Lichvar <mlichvar@redhat.com>
Date   : 2026-10-21T12:47:24+02:00
Stats  : +4/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/ntpsec/c/3663d5b17d33dbc3357c0a2bcce3d4f06cb10aa4?branch=epel9

Log:
use systemctl kill in logrotate postrotate script (#2372534)

---
diff --git a/ntpsec.spec b/ntpsec.spec
index 0fe7ac4..6d850ea 100644
--- a/ntpsec.spec
+++ b/ntpsec.spec
@@ -53,6 +53,10 @@ sed -i 's|NTPSEC_VERSION_EXTENDED|NTPSEC_VERSION|' pylib/ntp-in.egg-info
 sed -i 's|/var/NTP|%{_localstatedir}/log/ntpstats|' \
         docs/includes/ntpd-body.adoc ntpd/ntp_util.c
 
+# Use systemctl kill in logrotate postrotate script
+sed -i 's|killall -HUP ntpd$|systemctl kill --signal=HUP --kill-whom=main ntpd.service 2>/dev/null \|\| true|' \
+        etc/logrotate-config.ntpd
+
 %build
 export CFLAGS="$RPM_OPT_FLAGS"
 export LDFLAGS="$RPM_LD_FLAGS"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-21 11:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21 11:01 [rpms/ntpsec] epel9: use systemctl kill in logrotate postrotate script (#2372534) Miroslav Lichvar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox