From owner-freebsd-questions@freebsd.org Fri Aug 7 22:33:15 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 A2B35375C3F for ; Fri, 7 Aug 2020 22:33:15 +0000 (UTC) (envelope-from SRS0=kybE=BR=mail.sermon-archive.info=doug@sermon-archive.info) Received: from mail.sermon-archive.info (sermon-archive.info [71.177.216.148]) by mx1.freebsd.org (Postfix) with ESMTP id 4BNg9k3XWlz4103 for ; Fri, 7 Aug 2020 22:33:14 +0000 (UTC) (envelope-from SRS0=kybE=BR=mail.sermon-archive.info=doug@sermon-archive.info) Received: from [10.0.1.251] (mini [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4BNg9c1hVQz2fjTt for ; Fri, 7 Aug 2020 15:33:08 -0700 (PDT) From: Doug Hardie Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\)) Subject: Re: Best way to make a machine boot with or without a Internet connection Date: Fri, 7 Aug 2020 15:33:07 -0700 References: <20200807220824.42f04645@gumby.homeunix.com> To: User Questions In-Reply-To: <20200807220824.42f04645@gumby.homeunix.com> Message-Id: X-Mailer: Apple Mail (2.3445.104.15) X-Virus-Scanned: clamav-milter 0.101.4 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4BNg9k3XWlz4103 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of SRS0=kybE=BR=mail.sermon-archive.info=doug@sermon-archive.info designates 71.177.216.148 as permitted sender) smtp.mailfrom=SRS0=kybE=BR=mail.sermon-archive.info=doug@sermon-archive.info X-Spamd-Result: default: False [-1.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.57)[-0.568]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[lafn.org: no valid DMARC record]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.988]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.24)[-0.241]; R_SPF_ALLOW(-0.20)[+ip4:71.177.216.148]; FORGED_SENDER(0.30)[bc979@lafn.org,SRS0=kybE=BR=mail.sermon-archive.info=doug@sermon-archive.info]; RCVD_NO_TLS_LAST(0.10)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5650, ipnet:71.177.216.0/23, country:US]; FROM_NEQ_ENVFROM(0.00)[bc979@lafn.org,SRS0=kybE=BR=mail.sermon-archive.info=doug@sermon-archive.info]; RCVD_COUNT_TWO(0.00)[2] 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 22:33:15 -0000 > On 7 August 2020, at 14:08, RW via freebsd-questions = wrote: >=20 > On Thu, 6 Aug 2020 17:20:16 -0400 > Aryeh Friedman wrote: >=20 >> 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. =20 >=20 >=20 > 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. Depending on what you need running you may be able to use the proposed = fix in bug report 190447. I use that to move sshd above all the long = startup items so that I can access the systems if there is a hang in the = boot process. Generally, SSH access is all I need in those situations. = The other option if you have console access is to control-C through the = long running items. It takes a few of them, and those services are then = not initialized or running. But that gets through the boot process much = quicker. -- Doug