Date: Tue, 21 Jun 2022 08:05:40 -0600 From: Warner Losh <imp@bsdimp.com> To: "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org> Subject: Re: Updating reboot's default Message-ID: <CANCZdfqm22kUCgVseR%2BF9nx5B84r5-gMUhQBBRwzFtxTmhYg2w@mail.gmail.com> In-Reply-To: <CANCZdfq0bkw4RGy=HoQhx0VHck=JQzoiONWifMY3n37Mpgz17w@mail.gmail.com> References: <CANCZdfq0bkw4RGy=HoQhx0VHck=JQzoiONWifMY3n37Mpgz17w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000e2846505e1f5b7ad Content-Type: text/plain; charset="UTF-8" On Tue, Jun 21, 2022 at 8:01 AM Warner Losh <imp@bsdimp.com> 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. Warner > > Warner > > --000000000000e2846505e1f5b7ad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Tue, Jun 21, 2022 at 8:01 AM Warne= r Losh <<a href=3D"mailto:imp@bsdimp.com">imp@bsdimp.com</a>> wrote:<= br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e= x;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"= >15 or 20 years ago, we talked about changing the default for reboot from &= #39;right now' to being safe shutdown. There were arguments made agains= t it due to tiny appliances and such.<br><div><br></div><div>Time has past,= and this oddity has persisted. It's time to revisit that decision.</di= v><div><br></div><div>I'd propose that we keep 'fastboot' and &= #39;fasthalt' having the immediate behavior. However, the 'reboot&#= 39; command will switch from '-q' behavior to '-r' behavior= .</div><div><br></div><div>I'll update the man page, etc to reflect the= se new defaults. Most of the systems I've been on in the last 10-15 yea= rs 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 every= body else is doing, and will likely result in less astonishment rather than= more, even though it changes a long-standing default behavior.</div><div><= br></div><div>Comments?</div></div></blockquote><div><br></div><div>I sligh= tly misspoke here. I'm proposing we change the default to like 'shu= todwn=C2=A0-r' not to re-root the system... Sorry for any confusion.</d= iv><div><br></div><div>Warner</div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><div dir=3D"ltr"><div><br></div><div>Warner</div><div><br></div>= </div> </blockquote></div></div> --000000000000e2846505e1f5b7ad--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqm22kUCgVseR%2BF9nx5B84r5-gMUhQBBRwzFtxTmhYg2w>