[PATCH] Shutdown cooloff feature

Dag-Erling Smørgrav des at des.no
Tue Sep 29 11:09:00 UTC 2009


Daniel Braniss <danny at cs.huji.ac.il> writes:
> Xin LI <delphij at delphij.net> writes:
> > I'm not sure if anyone would find this useful:
> > 
> >  - 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.
> I know we are living in a virtual world, where even shutting down
> a computer is just a 'wish', but lets keep some sanity, now means now.

The "now" is not an issue; I think his point is that you *really* don't
want to accidentally type "shutdown -h now" or "shutdown now" instead of
"shutdown -r now" in an ssh session to a remote system - especially at 6
pm on a Friday night when the machine is in a colo center that's only
manned during business hours.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-current mailing list