File: set-statsdir-by-default.patch

package info (click to toggle)
ntpsec 1.2.3%2Bdfsg1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,960 kB
  • sloc: ansic: 62,004; python: 32,017; sh: 1,553; yacc: 1,293; makefile: 190; javascript: 138
file content (33 lines) | stat: -rw-r--r-- 1,294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Set statsdir by default
 This avoids the need to explicitly set "statsdir" in /etc/ntpsec/ntp.conf.
 .
 This is a change from the ntp ("NTP Classic") package, which requires the
 statsdir to be explicitly set for logging to happen.  However, that is only
 happening because /var/NTP does not normally exist, so it is a bit of an
 accidental feature.
Forwarded: not-needed
Origin: vendor
Author: Richard Laager <rlaager@debian.org>
Last-Update: 2024-03-10
--- a/docs/includes/ntpd-body.adoc
+++ b/docs/includes/ntpd-body.adoc
@@ -505,7 +505,7 @@
 |process ID file         |none              |+-p+        |+pidfile+
 |log file                |system log        |+-l+        |+logfile+
 |include file            |none              |none        |+includefile+
-|statistics path         |+/var/NTP+        |+-s+        |+statsdir+
+|statistics path         |+/var/log/ntpsec+ |+-s+        |+statsdir+
 |keys file               |none              |+-k+        |+keys+
 |===================================================================
 
--- a/ntpd/ntp_util.c
+++ b/ntpd/ntp_util.c
@@ -51,7 +51,7 @@
  * Statistics file stuff
  */
 #ifndef NTP_VAR
-# define NTP_VAR "/var/NTP/"		/* NOTE the trailing '/' */
+# define NTP_VAR "/var/log/ntpsec/"		/* NOTE the trailing '/' */
 #endif