RH & X Question

Derek D. Martin ddm at pizzashack.org
Sat Sep 29 13:12:10 EDT 2001


On Sat, Sep 29, 2001 at 12:46:15PM -0400, Kent Borg wrote:
> On Sat, Sep 29, 2001 at 12:37:11PM -0400, Brian J. Conway wrote:
> > > I know I can change the default run level, but that makes all logins
> > > go to X and it leaves X running all the time.  I don't want X chewing
> > > up resources on a machine that is mostly just a light weight server.
> > 
> > Start up X in the login scripts of people you want to log in to X?
> 
> But I also want to have the original login to go away.  I want
> something like:
> 
>   startx & ; logout

Close.  Put this in your .profile instead:

  # don't run startx in the background
  startx
  exit

This way, while the user is in X, the .profile stops executing,
waiting for startx to exit.  As soon as they log out of their X
session, the .profile will continue and call the shell exit, which
should log them out.


-- 
---------------------------------------------------
Derek Martin          |   Unix/Linux geek
ddm at pizzashack.org    |   GnuPG Key ID: 0x81CFE75D
Retrieve my public key at http://pgp.mit.edu

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list