Re: git: 1a241a911dc8 - stable/14 - ntpd: Use the ntpd -u option in preference to the rc su plumbing

From: Cy Schubert <Cy.Schubert_at_cschubert.com>
Date: Fri, 28 Feb 2025 16:22:52 UTC
In message <202502281412.51SECsWG048020@nuc.oldach.net>, Helge Oldach 
writes:
> Tomoaki AOKI wrote on Fri, 28 Feb 2025 10:53:24 +0100 (CET):
> > Unfortunately, this commit caused ntpd hesitating to (re)start
> > with error messages below on stable/14, amd64.
> > 
> >      ===== Quote =====
> > # service ntpd stop
> > Stopping ntpd.
> > Waiting for PIDS: 52508.
> > # service ntpd start
> > Starting ntpd.
> > daemon control: got EOF
> > /etc/rc.d/ntpd: WARNING: failed to start ntpd
> > # 
> >      ===== End quote =====
> > 
> > Note that I have
> >   ntpd_flags="-4 -g -x -f /var/db/ntpd.drift -l /var/log/ntpd.log"
> >   ntpd_config="/etc/ntp/ntp.conf"
> >   ntpd_enable="YES"
> >   ntpd_sync_on_start="YES"
> >   daily_ntpd_leapfile_enable="YES"
> >   ntp_leapfile_fetch_verbose="YES"
> > in my /etc/rc.conf.
>
> I suggest ensure that the files referenced by the command line or by
> configuration files can be created/written to by ntpd:ntpd.
>
> For example, you're not using the default location for ntpd.drift.
> The default location is /var/db/ntp/ntpd.drift, where the directory
> /var/db/ntp/ is owned by ntpd:ntpd (as per /etc/mtree/BSD.var.dist), so
> ntpd is able to write the drift file after dropping privileges.
>
> Kind regards
> Helge

This looks like it's related to,

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284863, which is upstream
https://bugs.ntp.org/show_bug.cgi?id=3967. It's a regression in 4.2.8p18.


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e^(i*pi)+1=0