From nobody Wed Mar 27 09:55:24 2024 X-Original-To: freebsd-arm@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 4V4MVc5qMXz5F6yD for ; Wed, 27 Mar 2024 09:55:36 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V4MVc3jlxz4T52 for ; Wed, 27 Mar 2024 09:55:36 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711533336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=oPnehqtcVA61uWm+qxZwQx399QL4w3FTNxx45C07xU8=; b=LW8WTN00oglU1hRfjjSsdxCL4bRqwdmp7P3BjaC6HOMTkfJCfEl30LKj2Qs8KB2oT9TsWR 2w28EHdcDoncYFO7AwfH7VamctyqzSENfmqjaNxvLRxB5of/zLRKnpyh85bXw2KD3iowEf jS/oObi7lLN/rpeox9NvoHH89CcV5/oO9xcjZeRKvC0PcC/2VlAuFA03l6OQw/k4lH0itK CNn89ZD+RQASetMAiZ9siNNUcDIbHFagT9DIrIr8AJYCMFcVPd7iNskDGcrWVRnHE7I3nk JviHq3fRkQ6eFC4FaWRiVJCM2TfI06vz8SHilLN0HtDBqXKlf6XspCk6HC5YDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711533336; a=rsa-sha256; cv=none; b=iWGlk4uvD76TsqTTR6Irz360Xpk2j0Wa+/2zbvKIQb2mbGzzmdbAhO7EiWiPWvyY7n1vxn OwQdPZkVwsE8p8T8e66+iuflUnbEoOHr/z4li9Vx4ZX+aW3MNgrrj4EHSBEFll3dHt0G0a eLr58ZoBYO5CXKRrUL+OdKbjOpTHKFd51iF85/avOe3ekTwhQ1wlI/h4c5RjGWEW5f0C3v aQy/ln9nwOeajCBzrepJQafapt11s+9X/Z9OPn/3HEGcCoW80+2ZsIdtNK1VKSbBHLAvWz L1pmprabbgJKIHqJyTkpo7leDhKNcKb6PEzPqv+N11+SKzkjESVhjnyhsWoFzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711533336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=oPnehqtcVA61uWm+qxZwQx399QL4w3FTNxx45C07xU8=; b=KxNueyoeiP6xAhnMuAOO6hgFNJAwXx2HO7E+CuTXRY+gThfxL3J1LTy/7TFEJng1odSdPd kgVTTeshYW8mzbr93ShUz0szSAFY3GnDASgIhn3s0LYoEJvkkucr6eoeK958jaWY0qxjf4 KYPKr5IJF3pm99uySSuZbypgduvgzjVl18EUsrtBcf0eGDhZJQr+xGE/iJsFp+6xQ3FD05 BLopGHx6CFArYqpdfbjo1Xl3OugwDfuCKQ4/OwhuYdnLm3KjaUNvO2f5Nc52269EmXDUSx OuiDSS5RCFbDHurXaQQXzFNacXw37PuZ0Pd430tNrcKs/X8QprfafxD4LoGj5A== Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4V4MVc39X2zP1W for ; Wed, 27 Mar 2024 09:55:36 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-609fc742044so69326697b3.1 for ; Wed, 27 Mar 2024 02:55:36 -0700 (PDT) X-Gm-Message-State: AOJu0YyD68nDHkdeppQ1Q1rhcoxteaSoD56atb/Ta7eUQGUs4lUT0rmh gGopNkbcbzt5/w9ZI90zk2aNnLXseKe/N2DyL//U7g8NO5Cdn+fFPxIhPJQuetCchdynVCmW8Bx 77wyIi1AGx0CJoaEAVH8bQgtxBBg= X-Google-Smtp-Source: AGHT+IE7On3c8G5eRHzB7H+Fe0drYgAXxnbDaXE7C74Y66xJfy0nJDb1RJGg0Y49wxOa+jhj84Jc6CDeyiRtd6CY+DU= X-Received: by 2002:a25:abe3:0:b0:dc6:57d0:ac9 with SMTP id v90-20020a25abe3000000b00dc657d00ac9mr2068142ybi.6.1711533335376; Wed, 27 Mar 2024 02:55:35 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 From: Nuno Teixeira Date: Wed, 27 Mar 2024 09:55:24 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: local/etc/rc.d service that runs before date being set by ntpd To: FreeBSD ARM List Content-Type: multipart/alternative; boundary="0000000000007a07c80614a16807" --0000000000007a07c80614a16807 Content-Type: text/plain; charset="UTF-8" Hello all, On rpi4 I use a service dns/noip and found that it don't get actual date from ntpd: /var/log/daemon.log (today) after boot --- Mar 27 09:09:40 rpi4 dhclient[1183]: DHCPREQUEST on genet0 to 192.168.1.1 port 67 Mar 27 09:09:40 rpi4 dhclient[1183]: DHCPACK from 192.168.1.1 Mar 27 09:09:40 rpi4 dhclient[1183]: bound to 192.168.1.66 -- renewal in 1800 seconds. *Jan 1 01:00:34* rpi4 noip2[1617]: v2.1.9 daemon started with NAT enabled *Jan 1 01:00:35* rpi4 noip2[1617]: freebsdrpi4.hopto.org was already set to 149.90.156.215. *Mar 27 09:26:13* rpi4 noip2[1617]: v2.1.9 daemon ended. Mar 27 09:26:13 rpi4 noip2[1887]: v2.1.9 daemon started with NAT enabled Mar 27 09:26:14 rpi4 noip2[1887]: freebsdrpi4.hopto.org was already set to 149.90.156.215. --- rc.conf: ntpd_enable="YES" ntpd_sync_on_start="YES" Checking `rcorder /etc/rc.d/* /usr/local/etc/rc.d/*` have correct order (?): */etc/rc.d/ntpdate* ... /etc/rc.d/sdpd /etc/rc.d/rarpd /etc/rc.d/powerd*/etc/rc.d/ntpd* /etc/rc.d/nscd /usr/local/etc/rc.d/dbus /usr/local/etc/rc.d/git_daemon*/usr/local/etc/rc.d/noip* /etc/rc.d/rfcomm_pppd_server /etc/rc.d/mountd /etc/rc.d/swaplate ... Strange that noip doesn't get correct date at boot time. Do I missing something? Thanks! -- Nuno Teixeira FreeBSD Committer (ports) --0000000000007a07c80614a16807 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

On rpi4 I use a service dns/noip and fou= nd that it don't get actual date from ntpd:

/var= /log/daemon.log (today) after boot
---
<snip><= br>Mar 27 09:09:40 rpi4 dhclient[1183]: DHCPREQUEST on genet0 to 192.168.1.= 1 port 67
Mar 27 09:09:40 rpi4 dhclient[1183]: DHCPACK from 192.168.1.1<= br>Mar 27 09:09:40 rpi4 dhclient[1183]: bound to 192.168.1.66 -- renewal in= 1800 seconds.
Jan =C2=A01 01:00:34 rpi4 noip2[1617]: v2.1.9 daem= on started with NAT enabled
Jan =C2=A01 01:00:35 rpi4 noip2[1617]= : freebsdrpi4.hopto.org was al= ready set to 149.90.156.215.
<service noip restart>
Mar 27 0= 9:26:13 rpi4 noip2[1617]: v2.1.9 daemon ended.
Mar 27 09:26:13 rpi4 = noip2[1887]: v2.1.9 daemon started with NAT enabled
Mar 27 09:26:14= rpi4 noip2[1887]: freebsdrpi4.hop= to.org was already set to 149.90.156.215.
---

rc= .conf:
ntpd_enable=3D"YES"
ntpd_sync_on_start=3D"YES&q= uot;

Checking `rcorder /etc/rc.d/* /usr/local/etc/rc= .d/*` have correct order (?):

<snip>
/etc/rc.d/ntpdate
...
/etc/rc.d/sdpd /etc/rc.d/rarpd /etc/rc.d/powerd /etc/rc.d/ntpd /etc/rc.d/nscd /usr/local/etc/rc.d/dbus /usr/local/etc/rc.d/git_daemon /usr/local/etc/rc.d/noip /etc/rc.d/rfcomm_pppd_server /etc/rc.d/mountd /etc/rc.d/swaplate
...
Strange that noip doesn't= get correct date at boot time.

Do I missing s= omething?

Thanks!

--
N= uno Teixeira
FreeBSD Committer (ports) --0000000000007a07c80614a16807--