Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Switching between X and no X using rc.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rikiwarren
n00b
n00b


Joined: 07 Oct 2002
Posts: 18

PostPosted: Wed Oct 30, 2002 5:46 am    Post subject: Switching between X and no X using rc. Reply with quote

I really thought this would work.

I added xdm to my default runlevel, then realized that I wanted an Xless runlevel to do maintenance type things.

The Xless runlevel should have everything that default has, except running xdm.

So, I went into the /etc/runlevels and copied everything form default to a new directory nox.

I then ran rc-update del xdm nox.

Then, to test it, I ran rc nox.

Well, it did shut off the x server, but it came right back on again.

How do I get this to work?

-Rich-
Back to top
View user's profile Send private message
Miles
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jun 2002
Posts: 97
Location: London, UK

PostPosted: Wed Oct 30, 2002 9:26 am    Post subject: Reply with quote

If you need to stop the X server just type:

Code:
/etc/init.d/xdm stop


Do what you need to do then turn it back on:

Code:
/etc/init.d/xdm start


There's no need to create a separate run level.
Back to top
View user's profile Send private message
rikiwarren
n00b
n00b


Joined: 07 Oct 2002
Posts: 18

PostPosted: Wed Oct 30, 2002 11:24 pm    Post subject: Reply with quote

Miles wrote:
If you need to stop the X server just type:

Code:
/etc/init.d/xdm stop


Do what you need to do then turn it back on:

Code:
/etc/init.d/xdm start


There's no need to create a separate run level.


Actually, this was the first thing I tried. It shut down X, but then restarted. (basically the same behavior as the runlevels).

Does it have something to do with using KDM versus others?

I'll try it again and see what happens.

-Rich-
Back to top
View user's profile Send private message
Miles
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jun 2002
Posts: 97
Location: London, UK

PostPosted: Thu Oct 31, 2002 12:37 am    Post subject: Reply with quote

Hmm...that's odd. Stopping xdm on my system stops X. xdm is just a wrapper for what ever login manager you're using (defined in /etc/rc.conf).

What run level did you add xdm to?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum