View previous topic :: View next topic |
Author |
Message |
rikiwarren n00b
Joined: 07 Oct 2002 Posts: 18
|
Posted: Wed Oct 30, 2002 5:46 am Post subject: Switching between X and no X using rc. |
|
|
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 |
|
|
Miles Tux's lil' helper
Joined: 23 Jun 2002 Posts: 97 Location: London, UK
|
Posted: Wed Oct 30, 2002 9:26 am Post subject: |
|
|
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 |
|
|
rikiwarren n00b
Joined: 07 Oct 2002 Posts: 18
|
Posted: Wed Oct 30, 2002 11:24 pm Post subject: |
|
|
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 |
|
|
Miles Tux's lil' helper
Joined: 23 Jun 2002 Posts: 97 Location: London, UK
|
Posted: Thu Oct 31, 2002 12:37 am Post subject: |
|
|
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 |
|
|
|