gentoo-ebuilds/net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch
Sebastian Pipping 32df79e74b
net-misc/ntpsec: Fix logrotate config
Closes: https://bugs.gentoo.org/873514
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
2023-04-17 00:35:38 +02:00

26 lines
663 B
Diff

From 4ba53b95a6a45f08f5d3436a4a3ba4f9a97146e2 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Mon, 17 Apr 2023 00:24:32 +0200
Subject: [PATCH] Give ntpd a chance at re-opening the logfile as ntp:ntp after
rotation
https://bugs.gentoo.org/873514
---
etc/logrotate-config.ntpd | 1 +
1 file changed, 1 insertion(+)
diff --git a/etc/logrotate-config.ntpd b/etc/logrotate-config.ntpd
index b64998e..9144e57 100644
--- a/etc/logrotate-config.ntpd
+++ b/etc/logrotate-config.ntpd
@@ -5,6 +5,7 @@
/var/log/ntpd.log {
monthly
+ create 640 ntp root
missingok
postrotate
/usr/bin/killall -HUP ntpd
--
2.40.0