Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2009 09:28:44 -0400
From:      John Baldwin <john@baldwin.cx>
To:        freebsd-current@freebsd.org
Cc:        Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?= <des@des.no>, d@delphij.net
Subject:   Re: [PATCH] Shutdown cooloff feature
Message-ID:  <200909290928.44645.john@baldwin.cx>
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
On Tuesday 29 September 2009 7:08:58 am Dag-Erling Sm=C3=B8rgrav wrote:
> Daniel Braniss <danny@cs.huji.ac.il> writes:
> > Xin LI <delphij@delphij.net> writes:
> > > I'm not sure if anyone would find this useful:
> > >=20
> > >  - If a shutdown is initiated from a tty -and-
> > >  - It's not a restart -and-
> > >  - The time parameter is set to "now"
> > >=20
> > > Then, the shutdown(8) program would give something like this:
> > >=20
> > > Shutting down <hostname> NOW, press ^C 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.
>=20
> 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 would even want it for 'shutdown -r' to be honest.  I occasionally reboot=
 my=20
desktop instead of a remote box due to accidentally logging out of an ssh=20
session, etc.  I've actually done a 'chmod 000' of /sbin/shutdown on my=20
current desktop as a workaround for now. :-/

=2D-=20
John Baldwin



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