Your message dated Tue, 12 Mar 2024 10:33:28 -0500
with message-id <[email protected]>
and subject line Re: Bug#1066081: ntpsec: ntpd reports error about missing 
/var/log/ntpsec
has caused the Debian Bug report #1066081,
regarding ntpsec: ntpd reports error about missing /var/log/ntpsec
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1066081: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066081
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ntpsec
Version: 1.2.3+dfsg1-1
Severity: normal

Dear Maintainer,

the ntpd reports the following error when starting:
statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error 
No such file or directory

While the service seems to be able to start, this directory is never
created and logs / statistics are not written.

Attached is a patch that creates this directory. Note, that we need to
use tmpfiles.d as this directory is on /var.

Best regards,
Felix Moessbauer
Siemens AG

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-0.deb12.4-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ntpsec depends on:
ii  adduser                    3.134
ii  init-system-helpers        1.65.2
ii  libbsd0                    0.11.7-2
ii  libc6                      2.36-9+deb12u4
ii  libcap2                    1:2.66-4
ii  libssl3                    3.0.11-1~deb12u2
ii  netbase                    6.4
ii  python3                    3.11.2-1+b1
pn  python3-ntp                <none>
ii  sysvinit-utils [lsb-base]  3.06-4
ii  tzdata                     2024a-0+deb12u1

Versions of packages ntpsec recommends:
ii  cron [cron-daemon]  3.0pl1-162
ii  systemd             252.22-1~deb12u1

Versions of packages ntpsec suggests:
ii  apparmor       3.0.8-3
pn  certbot        <none>
pn  ntpsec-doc     <none>
pn  ntpsec-ntpviz  <none>
>From f1b9ac43a726f2e99addb616964ec9ef6e3c3341 Mon Sep 17 00:00:00 2001
From: Felix Moessbauer <[email protected]>
Date: Tue, 12 Mar 2024 09:07:51 +0100
Subject: [PATCH 1/1] fix(debian): create ntpsec logdir on var

ntpd writes logs and statistics to this directory, but does not create
it. As this dir is on /var, we use tmpdirs.d to create it if not
existing.

Signed-off-by: Felix Moessbauer <[email protected]>
---
 debian/ntpsec.tmpfiles | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 debian/ntpsec.tmpfiles

diff --git a/debian/ntpsec.tmpfiles b/debian/ntpsec.tmpfiles
new file mode 100644
index 000000000..9a8fab6e0
--- /dev/null
+++ b/debian/ntpsec.tmpfiles
@@ -0,0 +1 @@
+d /var/log/ntpsec 0700 ntpsec ntpsec -
-- 
2.39.2


--- End Message ---
--- Begin Message --- This is intentional. The logging is optional and whether the directory exists controls this.

One advantage of that is the ntpsec-ntpviz package can create that directory to enable logging, which is required for ntpviz to be useful. Otherwise, it would have to edit the config file, which is riskier.

I'm closing this bug report, as a housekeeping thing, but we can re-open if needed.

--
Richard

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to