From nobody Thu Mar 28 10:56:44 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 4V50pw0cN1z5FZc9 for ; Thu, 28 Mar 2024 10:56:56 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4V50pv74VTz4L2k for ; Thu, 28 Mar 2024 10:56:55 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711623416; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3NNOYCMm+pLxDyJrrvxGl2+tuTl+UT+tA1t9LXjpQ8c=; b=ldYVoG+DZHOQNqypzuHXtUqHn0LZgJOn96oYEovUDiSqqkFUO9+6yCDUfkbR2VGS5YrCX4 KeR5UEwyIggMCi8S1/hR4tyrVn8j+mtNq1HbQEY3s1b+hnEC22gATryCT7utvwVW2cphU+ H/nQcaizLxOkxsg/hP7aiKo65UR1X3Qr2LmE/i9rN7Y6jCw9L08CLkUcmzyNyVQXIxl+AW FDdOQ1xZNvqAt5XpJ20yuc7nDVkk/9rEuuyuEPDVZN2nT+NKhqRhOV6NNBJFaRhOc2Tlep 5bJY8FP8YXRXgTk/AzCYsVnevM2pym56mmtVwnb4FR0XHbr83wrsukk9OfLvpA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711623416; a=rsa-sha256; cv=none; b=sLCT+C2HTaUOvaQPs1OzyxkvRRk1nTTxVDJ2zVTPSHhD7vs7L1BS758iHBM9xqNh6wY5bJ Sb0rSOv4+sOc2PgIVcr4avvnooPyt1WpSUTThBHnTaSuGRg88spwrrkwz9ujpPtCUm14UR sr7/F8uYhDuhz6w2OEOd3WWetx58VmFosMcwm8lRjlKKbNHlIp3vcm7k13+CYt4u6k38qE CzbUB71yG5lhtqX/RXkeyG02/NV0JW3Vtiwk/d7jbZC6Ljl0PKhkVBi1BLby9uW6VkAhek hSv76NQwVvG6SEeL0GucsoMaYn/LNVHRmltBf311/2IXWxNn6faeYRhLCuxHAQ== 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=1711623416; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3NNOYCMm+pLxDyJrrvxGl2+tuTl+UT+tA1t9LXjpQ8c=; b=JtrbUFfLss/DUIgqW0jLLFiEJw4NKN1By27ReFPWbxCciQfuQ91hfG5ZiCe0j+YfmG/5tj bhH9N6D+5vGbkgskxVojl/vI3fT7eOb4QYickwYLoetJShHaZxL6RtZQprg6FO9u8rNpaj fURoip/2Xew5mgju/Ebbj6FVv0IreJ361/ecqHVEfSuKIGAlnK3UOJ9IbimL4Nw0DXbN3t 5TLuouisyOTEewLGOeWaR9kRYEt/OmQIpMhKaPMvn6ELj2WKZUiOT+gEd5DW926XTBaLiK ahWUc9jWzUiKjezskTXL+bBX/F13xZVY25LPfgp61S5Kaw/cAVWx7LiWb0XMow== Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (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 4V50pv6L0tz18ml for ; Thu, 28 Mar 2024 10:56:55 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-60a057b6601so8325487b3.2 for ; Thu, 28 Mar 2024 03:56:55 -0700 (PDT) X-Gm-Message-State: AOJu0Yz/2QTHopcJ7pVWcDAtCzhryNRl44qEhWVN+By4jvrWYwO+Ky6R 0x32sEN2l6W/I3ohOjVzNq5vlgVVacEwywJnoI3Z+lzXNSP/EgrNvbtwZgO5ka0wAD6jVFUWhk+ KjbXZi/PddFzK9NTIdo+e4h+p0CY= X-Google-Smtp-Source: AGHT+IHPzaDGhXoNOrjcflkbQjZqne16aClIzoDHTv+bKQCOV0uKDhf4X7zzyLymUtRi06HStSrmVLtUTW6HxO0ovP8= X-Received: by 2002:a25:9092:0:b0:dc6:d2d3:a57c with SMTP id t18-20020a259092000000b00dc6d2d3a57cmr1948089ybl.59.1711623415094; Thu, 28 Mar 2024 03:56:55 -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 References: <352178670.7273.1711541383408@localhost> In-Reply-To: From: Nuno Teixeira Date: Thu, 28 Mar 2024 10:56:44 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Fwd: local/etc/rc.d service that runs before date being set by ntpd To: FreeBSD ARM List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable [forgot to include this list on reply] ---------- Forwarded message --------- De: Nuno Teixeira Date: quarta, 27/03/2024 =C3=A0(s) 12:53 Subject: Re: local/etc/rc.d service that runs before date being set by ntpd To: Ronald Klop Hello Ronald! Setting: ntpdate_enable=3D"YES" ntpd_enable=3D"YES" fixes it. I took my config: ntpd_enable=3D"YES" ntpd_sync_on_start=3D"YES" from https://forums.freebsd.org/threads/ntpdate-settings-in-14-0.91115/ related to ntpdate deprecation and recommendation to use ntpd -g flag. -g, --panicgate Allow the first adjustment to be Big. This option may appear = an unlimited number of times. I will install sysutils/fakertc since I use ZFS. Thanks! Ronald Klop escreveu (quarta, 27/03/2024 =C3=A0(s) 1= 2:09): > > > Van: Nuno Teixeira > Datum: woensdag, 27 maart 2024 10:55 > Aan: FreeBSD ARM List > Onderwerp: local/etc/rc.d service that runs before date being set by ntpd > > 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 t= o 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 t= o 149.90.156.215. > --- > > rcconf: > ntpd_enable=3D"YES" > ntpd_sync_on_start=3D"YES" > > Checking `rcorder /etc/rc.d/* /usr/local/etc/rcd/*` 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) > > > > Hi, > > In my rcorder output noip2 comes before ntpd. > But I have in rc.conf: > ntpdate_enable=3D"YES" > ntpd_enable=3D"YES" > > ntpdate is run more early in the rcorder. > > I don't know about ntpd_sync_on_start and if that influences the rcorder.= I think it is just an option to ntpd. > > Please try to add ntpdate_enable=3D"YES". > > BTW: if you run ZFS-on-boot on RPI you can use sysutils/fakertc to get a = bit better time at boot. In UFS the time is stored on disk on unmount/shutd= own which is used to set the time on startup. ZFS does not have this featur= e. Fakertc mimics this as good as it can which can help to have a "decent" = time to make TLS certificates, etc. valid on boot. > > Regards, > Ronald. > -- Nuno Teixeira FreeBSD Committer (ports) --=20 Nuno Teixeira FreeBSD Committer (ports)