Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2022 10:33:30 +0200
From:      Daniel Ebdrup Jensen <debdrup@FreeBSD.org>
To:        freebsd-arch@freebsd.org
Subject:   Re: Updating reboot's default
Message-ID:  <20220623083330.ado2tzlikuyqy5pa@geroi.local>
In-Reply-To: <59503878-4DF2-49B7-AF40-A3AA506889DA@freebsd.org>
References:  <CANCZdfoMTVCMdG7Gy_x0W=-YFr1rz4-uH9nfutDb3AdALWA8Rg@mail.gmail.com> <59503878-4DF2-49B7-AF40-A3AA506889DA@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--ya4iyqp37ie2vyz4
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

On Wed, Jun 22, 2022 at 07:22:04PM +0200, Michael Gmelin wrote:
>> On 22. Jun 2022, at 19:12, Warner Losh <imp@bsdimp.com> wrote:
>> What do you like about the current behavior: How quickly the reboot happens? Or you have a lot of running processes you don't want killed or to have a chance to clean up?
>
>Both

      I'm curious about this one, because to me reboot has always been
      there to help in cases where a machine needs to be rebooted _right
      now_, irrespective of what it's doing, up to and including possibly
      corrupting various databases that might need more than 5 seconds to
      finish their work.

      It seems to me that those things only come about in the case of
      imminent hardware failure, zero-day exploits against high-value
      targets, and things of that nature that are otherwise unavoidable,
      and that're covered by the same clauses that cover force majure in
      service license agreements about any number of nines.

      Out of interest, how much quicker is the current reboot compared to
      shutdown -r? If you have any numbers to share, that'd certainly
      have my interest.

>> The only thought I've put into this is from my perspective, and while it is often a good reflection of the larger community, there are times there's a mismatch, so I'd like to at least understand why you hold these views. There may be a simple way to accommodate both sides.
>>
>
>For me this is almost solely about muscle memory. If changing it serves the many, I can adapt and start using `fastboot` again (which I used for many years, until I realized that `reboot` did exactly the same)

      As Warner highlights elsewhere, most people have had to alias
      reboot to `shutdown -r now` - up to and including for system
      processes. It seems to me that this change would mean that the few
      people like you who want the behaviour will now have to do this?
      For example, the x11/ly display manager I'm using lets you pick the
      command to shut down the system, but it's hardcoding the command to
      reboot - so if I accidentally press F2 instead of F1 (or switch to
      a VTY to login and type out the command properly), it could in
      theory end up being slightly annoying (since I have plenty of ZFS
      snapshots to restore from.

>If we were redoing things from scratch, what you propose would make more sense than the current behavior for sure.
>
>Cheers
>Michael

Hi folks,

      Overall, I'm in favour of making a flagday out of this, and
      changing the default - because, unless you're coming from a BSD
      system, you're going to risk behaviour that could be a lot more
      disasterous than outlined above.

      So in this instance, it makes sense to change it.

Yours,
Daniel Ebdrup Jensen

--ya4iyqp37ie2vyz4
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAABCgB9FiEEDonNJPbg/JLIMoS6Ps5hSHzN87oFAmK0JVpfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDBF
ODlDRDI0RjZFMEZDOTJDODMyODRCQTNFQ0U2MTQ4N0NDREYzQkEACgkQPs5hSHzN
87r42gf/cqNkkblDP61sA98VYOzmZsRH4Cs2DLLfvcsTRiSHkFn+x/azpSQEhve6
hMLexYgjE4nhDBMj9BRopO/1gb4w2vkVZroCEeZSq0kO7iFl0Nk9GXq+jko4MVYC
1YQ9LG51nyNICS7f62cCB5POoqw60R6Ia77VM5PthIC/SiqxkX2XDc+iAbaT/maB
PaWqNhm361eVK9qmoudFFMzYK1XsALvweIgzR29RTsK4fgTkqVnH/E7PE3377miA
k0ERYHbaNFSI+I206OcUBHxBkMJ67b9NwN0hzJX0gRwD0Ah4t6cdbhXUNW60nBvz
4qUL9fKbPSpy8ywMJ/gpIBCaXmdM3A==
=n90G
-----END PGP SIGNATURE-----

--ya4iyqp37ie2vyz4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220623083330.ado2tzlikuyqy5pa>