From nobody Fri Feb 28 14:12:54 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 4Z49Ct546Gz5m0X5 for ; Fri, 28 Feb 2025 14:13:14 +0000 (UTC) (envelope-from freebsd@oldach.net) Received: from nuc.oldach.net (hmo.in-vpn.de [IPv6:2001:67c:1407:60::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "nuc.oldach.net", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z49Cr0z7Hz3ZxN for ; Fri, 28 Feb 2025 14:13:11 +0000 (UTC) (envelope-from freebsd@oldach.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=oldach.net; spf=pass (mx1.freebsd.org: domain of freebsd@oldach.net designates 2001:67c:1407:60::1 as permitted sender) smtp.mailfrom=freebsd@oldach.net Received: from nuc.oldach.net (localhost [127.0.0.1]) by nuc.oldach.net (8.18.1/8.18.1) with ESMTPS id 51SECtM7048021 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 28 Feb 2025 15:12:55 +0100 (CET) (envelope-from freebsd@oldach.net) Received: (from hmo@localhost) by nuc.oldach.net (8.18.1/8.18.1/Submit) id 51SECsWG048020; Fri, 28 Feb 2025 15:12:54 +0100 (CET) (envelope-from freebsd@oldach.net) Message-Id: <202502281412.51SECsWG048020@nuc.oldach.net> X-Authentication-Warning: nuc.oldach.net: hmo set sender to freebsd@oldach.net using -f Subject: Re: git: 1a241a911dc8 - stable/14 - ntpd: Use the ntpd -u option in preference to the rc su plumbing In-Reply-To: <20250228185324.df32beaa550475b0832e1ca0@dec.sakura.ne.jp> from Tomoaki AOKI at "28 Feb 2025 18:53:24" To: junchoon@dec.sakura.ne.jp (Tomoaki AOKI) Date: Fri, 28 Feb 2025 15:12:54 +0100 (CET) Cc: cy@FreeBSD.org, dev-commits-src-branches@freebsd.org From: freebsd@oldach.net (Helge Oldach) X-No-Archive: Yes 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 Content-Transfer-Encoding: 7bit X-Greylist: inspected by milter-greylist-4.6.4 (nuc.oldach.net [0.0.0.0]); Fri, 28 Feb 2025 15:12:55 +0100 (CET) for IP:127.0.0.1 DOMAIN:localhost HELO:nuc.oldach.net FROM:freebsd@oldach.net RCPT: X-Spamd-Result: default: False [-1.87 / 15.00]; NEURAL_HAM_LONG(-0.99)[-0.989]; NEURAL_HAM_SHORT(-0.82)[-0.815]; NEURAL_SPAM_MEDIUM(0.74)[0.737]; DMARC_POLICY_ALLOW(-0.50)[oldach.net,none]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:29670, ipnet:2001:67c:1400::/45, country:DE]; HAS_XAW(0.00)[]; FROM_NO_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; R_DKIM_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-branches@freebsd.org] X-Rspamd-Queue-Id: 4Z49Cr0z7Hz3ZxN X-Spamd-Bar: - 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