From nobody Tue Jun 21 16:20:57 2022 X-Original-To: freebsd-arch@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 533DE87594F for ; Tue, 21 Jun 2022 16:21:06 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LSBb53K4Bz3Bmj for ; Tue, 21 Jun 2022 16:21:05 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 25LGKvVG053810; Tue, 21 Jun 2022 09:20:57 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 25LGKvbN053809; Tue, 21 Jun 2022 09:20:57 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202206211620.25LGKvbN053809@gndrsh.dnsmgr.net> Subject: Re: Updating reboot's default In-Reply-To: To: Warner Losh Date: Tue, 21 Jun 2022 09:20:57 -0700 (PDT) CC: "freebsd-arch@freebsd.org" X-Mailer: ELM [version 2.4ME+ PL121h (25)] List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4LSBb53K4Bz3Bmj X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-rwg@gndrsh.dnsmgr.net has no SPF policy when checking 69.59.192.140) smtp.mailfrom=freebsd-rwg@gndrsh.dnsmgr.net X-Spamd-Result: default: False [-1.74 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.64)[-0.643]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-arch]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N [ Charset UTF-8 unsupported, converting... ] > On Tue, Jun 21, 2022 at 8:01 AM Warner Losh wrote: > > > 15 or 20 years ago, we talked about changing the default for reboot from > > 'right now' to being safe shutdown. There were arguments made against it > > due to tiny appliances and such. > > > > Time has past, and this oddity has persisted. It's time to revisit that > > decision. > > > > I'd propose that we keep 'fastboot' and 'fasthalt' having the immediate > > behavior. However, the 'reboot' command will switch from '-q' behavior to > > '-r' behavior. > > > > I'll update the man page, etc to reflect these new defaults. Most of the > > systems I've been on in the last 10-15 years have had some flavor of 'alias > > reboot reboot -r' in their login scripts and/or made shell scripts that did > > this. This will match what everybody else is doing, and will likely result > > in less astonishment rather than more, even though it changes a > > long-standing default behavior. > > > > Comments? > > > > I slightly misspoke here. I'm proposing we change the default to like > 'shutodwn -r' not to re-root the system... Sorry for any confusion. Retract my prior objection based on reboot -r being a re-root. BUTT: shutdown -r requires an argument of "time" And what would the time be? aka if you alias reboot "shutdown -r", when I type reboot I'll end up getting a usage error. This is gona cause some confusion, perhaps you mean to alias reboot "shutdown -r now"? -- Rod Grimes rgrimes@freebsd.org