From owner-freebsd-questions@freebsd.org Fri Aug 7 21:08:31 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8157537455B for ; Fri, 7 Aug 2020 21:08:31 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BNdHy0k8fz3fcd for ; Fri, 7 Aug 2020 21:08:29 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wr1-x435.google.com with SMTP id y3so2841824wrl.4 for ; Fri, 07 Aug 2020 14:08:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=89NGplluPggg11vlF2vXalB8hcsp55E/SNrZENkR/cc=; b=gUaGOj3vSWnSjGj8T0bRjRi6PwBRDH41Z1U5g+BCQiyMzt10AQ1GX5Wc+9ZU3o2FkP Wpy5Wpn3+jet6qsR+Z1fyPuM718r2WKqOAWKkKgOgDf0KW46Gt991e6rSgTAye+PmWUN 21ckpGjUivBjJQjg6g7DIrEwWNHaYKAjFevA6btyuTWvJu7X4EqAEnlrSsnNUly7G2jN 7WMbuPrGzZWh8tGl35Tk0Pgyu0mWU3Ztlc4ukA6axWR3xBikgYfyRhwCmesh0bAT9yXn 7UlrCG6dYEbCejohFV/V70TTDAo2u4WUhF3SdXLQOOfrMGlWiYPf5+tc9Rgq3xfXUZz7 6HQQ== X-Gm-Message-State: AOAM533aykWmfN5atPp3Kq5Rw1GRjVh3sgQi84YTRMhF8ccrva4z85ts O+gxiSnk2Bo8+1Wrr3rsiwWnpB1F X-Google-Smtp-Source: ABdhPJweFWjy7pI98OYDV9vLVlqK3quUssLTD3vpV/IdtMxWwB6F16XNBg55/VqUX/E9r+jNOF3kvw== X-Received: by 2002:adf:fd8b:: with SMTP id d11mr13994062wrr.156.1596834507208; Fri, 07 Aug 2020 14:08:27 -0700 (PDT) Received: from gumby.homeunix.com ([2.217.227.122]) by smtp.gmail.com with ESMTPSA id v16sm8562487wmj.14.2020.08.07.14.08.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 14:08:26 -0700 (PDT) Date: Fri, 7 Aug 2020 22:08:24 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: Best way to make a machine boot with or without a Internet connection Message-ID: <20200807220824.42f04645@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BNdHy0k8fz3fcd X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.36 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[2.217.227.122:received]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[googlemail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.97)[-0.966]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-0.43)[-0.430]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::435:from]; NEURAL_SPAM_SHORT(0.03)[0.032]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com:dkim] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2020 21:08:31 -0000 On Thu, 6 Aug 2020 17:20:16 -0400 Aryeh Friedman wrote: > Due to storm related damage my ISP went out for a few (12) hours > earlier in the week and while I got it usable without a Internet > connection by putting everything in my LAN in /etc/hosts (I also run > a local_unbound --> local bind9 on my file server which I have > created a zone file for the LAN machines also), but it was very slow > in booting due to ntpdate, tomcat and sendmail not being to connect > to the Internet for either forward or reverse DNS. I don't want to > turn these services off, but I want to be able to do a normal boot > (no long hangs) if the ISP goes down again. What I used to do when I needed to use my computer without a network connection is define an OFFLINE flag in rc.conf and then make the setting of relevant "enable" flags conditional on that. If there's anything you still need to run you could start it separately with onestart later in the boot sequence.