[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shutdown -h: must hit ALT CTRL F7 else miss messages



>>>>> "d" == Derrick 'dman' Hudson <dman@dman.ddts.net> writes:

d> On Tue, Jul 09, 2002 at 03:54:11AM +0800, Dan Jacobson wrote:
d> | I'd just like to mention, and I tried the posted suggestions, but:
d> | say I'm in a usual Xwindow when I issue the shutdown -h now command.
d> | I am then sent to tty1 where I miss all the nice shutting down this
d> | and that service messages.  All I will see is the final "Power off".
d> | 
d> | If I want to see the nice shutting down this and that service
d> | messages, I must hit ALT CTRL F7 right away.

d> Solution :
d>     Don't run 'shutdown -h' in an xterm.

d> Instead, click the logout button in your WM (or desktop), then choose
d> the shutdown option from your display manager.

ok, but that is a whole lot more steps than a simple shutdown -h now.

d> I suspect that all the output goes to vc7 because that's where the
d> command was run from.  However, until X is killed, you won't see any
d> of that output since it overwrites its own stuff on vc7.  When X goes
d> away, you are sent to vc1.  Now you don't see any messages because you
d> sent them to vc7.  Using my technique, the messages will come out on
d> vc1 and that's where you'll be sent.

I bet then that there's no way to write a script to so any of this...

d> Alternatively, switch to vc1 first then run shutdown.

Then I got to login there first.  Sheesh.

Wait, I know, I will write a script that does a killall -HUP someprocess
[uh oh, which process? icewm? here's my pstree output:]
     |-kdm-+-XFree86
     |     `-kdm---sh-+-emacs-+-emacsserver
     |                |       |-ispell
     |                |       `-pstree
     |                |-icewm
     |                |-mozilla-bin---mozilla-bin---4*[mozilla-bin]
     |                |-ssh-agent
     |                `-xcin

and then moments later have the script execute shutdown -h now.
Wait again.  Looking at man xconsole, man kdm.options, perhaps I can
have my script somehow use this...    oh, never mind, X gets shut down
early on.

Wait #3: perhaps I can do in my script
exec vc7 > /dev/tty7 2>&1 #no idea how to name these
shutdown -h now

Anyways, I thought this stuff [linux] was flexible.  Certainly
anything I can do from the keyboard can be done from a script?  It's
not like I'm asking it to plug in a cable or something. 
-- 
http://jidanni.org/ Taiwan(04)25854780


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: