Re: [PATCH] Shutdown cooloff feature

From: Daniel Braniss <danny_at_cs.huji.ac.il>
Date: Tue, 29 Sep 2009 15:46:56 +0200
> > 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.

I understand what is at stake, my problem is that in other *Unixes, sysV/Solaris
'shutdown now' is actually sometime in the future :-), and it does not help
much if you are far away and the link is slow, so the 5 sec. grace is actually
taken up by the bandwidth - or you are connected via an iphone, how do you
hit ^C :-)

what if the machine is compromised and you really want to power it off,
now the intruder has another 5 seconds ...

thankfully +0 works, or are there plans to change that too? :-)

careful! bikeshead ahead

cheers,
	danny
Received on Tue Sep 29 2009 - 11:46:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC