Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 1996 06:28:42 -0700 (MST)
From:      Don Yuniskis <dgy@rtd.com>
To:        lada@ws2301.gud.siemens.co.at (Hr.Ladavac)
Cc:        dgy@rtd.com, lada@ws2301.gud.siemens.co.at, DARBY1@x400.telkom400.inca.za, questions@freebsd.org
Subject:   Re: Dummies guide to freebsd ?
Message-ID:  <199608071328.GAA22300@seagull.rtd.com>
In-Reply-To: <199608071143.AA221478232@ws2301.gud.siemens.co.at> from "Hr.Ladavac" at Aug 7, 96 01:43:51 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > > Yes.  Very wrong, indeed.  You should shut the machine down prior to power
> > > down.  The easiest way to do that on a standalone PC is CTRL-ALT-DEL
> > > (i.e. keyboard machine reset, you know, three-finger-salute :)  
> > 
> > Hmmm... are you *sure* this cleanly kills all processes, flushes
> > cache, etc.  (I don't know for sure...)
> 
> It does.  It does call shutdown -r now, after all.  Been doing it for years, 
> never had a problem (I know, anecdotal evidence <knocks on wood> :).

I'll take your word for it -- but I'll still stick to my routine of
shutdown; sync; sync; halt...  :>

> > > You should do that on a console without X running on it.  To switch to one
> > > of these from X use CTRL-ALT-F1 (that will put you in boot console, 
> > > probably the best one for shutdown as all system messages normally appear
> > > there.)
> > 
> > I think shutdown silently kills all the VTY's and leaves you *at*
> > "the" console...
> 
> Well, it does.  But what I said had to do with C-A-D and X: X doesn't 
> propagate the keypresses and it steals the keyboard from the system--read
> "You cannot C-A-D from X".

Yes.  Understood.  Oh, *I* see (said the blind man)... you were
discussing how to shutdown WITHOUT killing X *first*!  (I read this
as killing X then using ALT-F1 -- not CTRL-ALT-F1 -- to select the
first VTY... I was trying to point out that shutdown automatically
drops you into the console... "Nevermind"  :>)
 
> > Hmmm... SysV used to check for shutdown/halt stuff coming ONLY from
> > the console.  Now I'm curious if FBSD imposes this also (though
> > halt from single user mode would *obviously* be from the console!  :>)
> 
> It doesn't check.  Neither does SysV nowadays (it was a stupid shutdown
> users shell/script anyway.)

Yes.  But, at least it looked at the source of the command to provide
*some* measure of protection against someone shutting down the system
(even root) from a tty...

--don



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