From owner-freebsd-questions Wed Aug 7 06:29:17 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA19148 for questions-outgoing; Wed, 7 Aug 1996 06:29:17 -0700 (PDT) Received: from seagull.rtd.com (root@seagull.rtd.com [198.102.68.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA19123 for ; Wed, 7 Aug 1996 06:29:10 -0700 (PDT) Received: (from dgy@localhost) by seagull.rtd.com (8.7.5/8.7.3) id GAA22300; Wed, 7 Aug 1996 06:28:42 -0700 (MST) From: Don Yuniskis Message-Id: <199608071328.GAA22300@seagull.rtd.com> Subject: Re: Dummies guide to freebsd ? To: lada@ws2301.gud.siemens.co.at (Hr.Ladavac) Date: Wed, 7 Aug 1996 06:28:42 -0700 (MST) Cc: dgy@rtd.com, lada@ws2301.gud.siemens.co.at, DARBY1@x400.telkom400.inca.za, questions@freebsd.org In-Reply-To: <199608071143.AA221478232@ws2301.gud.siemens.co.at> from "Hr.Ladavac" at Aug 7, 96 01:43:51 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > 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 :). 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