Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2009 15:46:56 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, d@delphij.net
Subject:   Re: [PATCH] Shutdown cooloff feature 
Message-ID:  <E1Msd2e-0008MR-0w@kabab.cs.huji.ac.il>
In-Reply-To: <86fxa6gg8l.fsf@ds4.des.no> 
References:  <4AC141B0.4090705@delphij.net> <E1MsXso-0005Eg-CY@kabab.cs.huji.ac.il> <86fxa6gg8l.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
> > Xin LI <delphij=40delphij.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 =22now=22
> > >=20
> > > Then, the shutdown(8) program would give something like this:
> > >=20
> > > Shutting down <hostname> NOW, press =5EC within 5 seconds to cancel=
...
> > >=20
> > > 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 =22now=22 is not an issue; I think his point is that you *really* d=
on't
> want to accidentally type =22shutdown -h now=22 or =22shutdown now=22 i=
nstead of
> =22shutdown -r now=22 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 he=
lp
much if you are far away and the link is slow, so the 5 sec. grace is act=
ually
taken up by the bandwidth - or you are connected via an iphone, how do yo=
u
hit =5EC :-)

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=21 bikeshead ahead

cheers,
	danny





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Msd2e-0008MR-0w>