From nobody Fri Feb 28 16:22:52 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Z4D5Y1GlGz5ngFl for ; Fri, 28 Feb 2025 16:22:57 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta004.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z4D5X68FNz43Q7; Fri, 28 Feb 2025 16:22:56 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTPS id nzYdt68ey5Mqyo38atJMkc; Fri, 28 Feb 2025 16:22:56 +0000 Received: from spqr.komquats.com ([70.66.136.217]) by cmsmtp with ESMTPSA id o38YtkM06JhBPo38ZtkL6U; Fri, 28 Feb 2025 16:22:56 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=QY3Fvdbv c=1 sm=1 tr=0 ts=67c1e2e0 a=h7br+8Ma+Xn9xscxy5znUg==:117 a=h7br+8Ma+Xn9xscxy5znUg==:17 a=R3mQYeSd_XdQyng2:21 a=kj9zAlcOel0A:10 a=T2h4t0Lz3GQA:10 a=6I5d2MoRAAAA:8 a=85N1-lAfAAAA:8 a=EkcXrb_YAAAA:8 a=gRS1eiuiAAAA:8 a=YxBL1-UpAAAA:8 a=yqSkI1Li77T7Hif44EAA:9 a=CjuIK1q_8ugA:10 a=cyfSibbquD4hpIoiQNSb:22 a=LK5xJRSDVpKd5WXXoEvA:22 a=udpbrAo2yJH2O6eCpvBn:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 56011465; Fri, 28 Feb 2025 08:22:53 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id E5053324; Fri, 28 Feb 2025 08:22:52 -0800 (PST) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: freebsd@oldach.net (Helge Oldach) cc: junchoon@dec.sakura.ne.jp (Tomoaki AOKI), cy@FreeBSD.org, dev-commits-src-branches@freebsd.org Subject: Re: git: 1a241a911dc8 - stable/14 - ntpd: Use the ntpd -u option in preference to the rc su plumbing In-reply-to: <202502281412.51SECsWG048020@nuc.oldach.net> References: <202502281412.51SECsWG048020@nuc.oldach.net> Comments: In-reply-to freebsd@oldach.net (Helge Oldach) message dated "Fri, 28 Feb 2025 15:12:54 +0100." List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 28 Feb 2025 08:22:52 -0800 Message-Id: <20250228162252.E5053324@slippy.cwsent.com> X-CMAE-Envelope: MS4xfBdkr7wHW9BjGjxmcl/dTiDEZKjNX+SM8+uMfCwRq2JzedOerQh+5xlNuakTFpZnahlFvFo6v2bWHfglFGvu9gysxI2hhPc+zDLdwBCjVNoX04dLKVbM U8Xsye+nPx+KeScRZqdlh8yCktj8hyBbpW1YrOYkQK61oGbLMCGyp111IkcZ7CzufyL9ATCUeft6rs0hatRWu/X+SWWBKXA+lqHVxpnJPzi5jJ2Pn3fsMrZt GTUcFAKxD6F/sKoElnOiRKRS6n0Y33/oRHv6M6xS3tGohy/70tljip0FI8UxHOIRJLjMFuP6lJ4F0AdzATK9UQ== X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4Z4D5X68FNz43Q7 X-Spamd-Bar: ---- 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 FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0