summaryrefslogtreecommitdiff
path: root/net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-17 05:52:09 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-17 05:52:09 +0100
commit269581204f3555e3dee67f4ecf29dca64a118e48 (patch)
tree83e6fa02f080563b2acc586ad71143c5318a538b /net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch
parent3e488f4a5f53b007af8cc3180f9ac0abfe5a0be8 (diff)
gentoo auto-resync : 17:04:2023 - 05:52:08
Diffstat (limited to 'net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch')
-rw-r--r--net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch b/net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch
new file mode 100644
index 000000000000..60152bc846c4
--- /dev/null
+++ b/net-misc/ntpsec/files/ntpsec-1.2.2-logrotate.patch
@@ -0,0 +1,26 @@
+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
+