[PATCH] Shutdown cooloff feature

Robert Watson rwatson at FreeBSD.org
Tue Sep 29 11:46:42 UTC 2009


On Mon, 28 Sep 2009, Xin LI wrote:

> I'm not sure if anyone would find this useful:

Along similar lines, if we're looking at frequent admin errors: I've noticed 
an increasing number of people using "reboot" rather than "shutdown -r NOW" on 
the basis that on Linux (and perhaps other systems), reboot gives a clean 
application shutdown.  I wonder if we should be making a similar change -- a 
lot of people may be risky data corruption/loss due to unclean application 
shutdown as a result of that misunderstanding.

Robert

>
> - If a shutdown is initiated from a tty -and-
> - It's not a restart -and-
> - The time parameter is set to "now"
>
> Then, the shutdown(8) program would give something like this:
>
> Shutting down <hostname> NOW, press ^C within 5 seconds to cancel...
>
> So the user would get a chance to terminate it before it's too late.
>
> Cheers,
> - --
> Xin LI <delphij at delphij.net>	http://www.delphij.net/
> FreeBSD - The Power to Serve!
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.12 (FreeBSD)
>
> iEYEARECAAYFAkrBQa8ACgkQi+vbBBjt66D5iQCgmISna2P4CbX9qob5SuetGuoy
> nUUAn0BtA/67Lyy8+91JppokUE57c/Ew
> =Aytq
> -----END PGP SIGNATURE-----
>


More information about the freebsd-current mailing list