not reading /etc/ntpd.d/default.conf

shouldbe q931 shouldbeq931 at gmail.com
Fri Apr 17 11:14:30 UTC 2020


Hi Hal,

On Fri, Apr 17, 2020 at 11:03 AM Hal Murray <hmurray at megapathdsl.net> wrote:
>
>
> users at ntpsec.org said:
> > My question is not about /etc/ntp.conf, my question is about why
/etc/ntp.d/
> > default.conf is not read.
>
> Probably because it gave up when it couldn't read the default config file.

This would appear to be the case, but as per my previous, this was not the
behavior I was expecting!



> What was in syslog?

I have just reproduced the issue, and there were no messages logged to
syslog or messages.

I provided a link to an strace of NTPSec failing to start in the email that
you replied to, lines 347 and 348 are

7556  openat(AT_FDCWD, "/etc/ntp.conf", O_RDONLY) = -1 ENOENT (No such file
or directory)
7556  +++ exited with 1 +++

For reference this is from a different attempt to start, so the PID date
and time does not match the strace, but the rest is functionally the same.

$ systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded (/lib/systemd/system/ntpd.service; enabled; vendor
preset: enabled)
   Active: failed (Result: exit-code) since Fri 2020-04-17 11:50:16 BST; 6s
ago
     Docs: man:ntpd(8)
  Process: 20080 ExecStart=/usr/local/sbin/ntpd -g -N -u ntp:ntp
(code=exited, status=0/SUCCESS)
 Main PID: 20081 (code=exited, status=1/FAILURE)

Apr 17 11:50:16 piclock-1 ntpd[20080]: INIT: ntpd ntpsec-1.1.8+
2020-04-15T19:21:39Z (git rev b1e40a8): Starting
Apr 17 11:50:16 piclock-1 ntpd[20080]: INIT: Command line:
/usr/local/sbin/ntpd -g -N -u ntp:ntp
Apr 17 11:50:16 piclock-1 ntpd[20080]: 2020-04-17T11:50:16 ntpd[20080]:
INIT: ntpd ntpsec-1.1.8+ 2020-04-15T19:21:39Z (git rev b1e40a8): Starting
Apr 17 11:50:16 piclock-1 ntpd[20080]: 2020-04-17T11:50:16 ntpd[20080]:
INIT: Command line: /usr/local/sbin/ntpd -g -N -u ntp:ntp
Apr 17 11:50:16 piclock-1 systemd[1]: Started Network Time Service.
Apr 17 11:50:16 piclock-1 ntpd[20081]: INIT: precision = 0.989 usec (-20)
Apr 17 11:50:16 piclock-1 ntpd[20081]: INIT: successfully locked into RAM
Apr 17 11:50:16 piclock-1 ntpd[20081]: CONFIG: failed to open
'/etc/ntp.conf': No such file or directory
Apr 17 11:50:16 piclock-1 systemd[1]: ntpd.service: Main process exited,
code=exited, status=1/FAILURE
Apr 17 11:50:16 piclock-1 systemd[1]: ntpd.service: Failed with result
'exit-code'.

Chers

Arne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/users/attachments/20200417/b4873079/attachment.htm>


More information about the users mailing list