Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

From Runlevel 3 to Runlevel 4 back to runlevel 3

Status
Not open for further replies.

hidden75

IS-IT--Management
Aug 10, 2005
169
US
Okay. I have my Redhat 9 box in runlevel 3 ( text CLI mode) about 95% of the time. Sometimes I need to go into runlevel 4 ( KDM) to do some functions. I then want to exit KDM and return to runlevel 3. When I try to exit KDM I only have login, shutdown or reboot. I want to exit KDM and go back to runlevel 3 without rebooting... Can't this be done?


Thanks.
 
I could be mistaken, because I've never heard of anyone running at runlevel 4 (runlevel 5 is graphical multi-user), but you could try just running "startx" to start the X session as your userid. When you log out, it will put you back into your runlevel 3 command prompt, still logged in.

It is dangerous to leave a machine in this mode however, since anyone can type Ctrl-Alt-Backspace to restart the X server and be you. Or they can Ctrl-Alt-F1 to your tty and press Ctrl-C to kill the X session and take over your session.

But if you are just doing it to run a windowed application and then exiting back to the command prompt, it isn't a bad way to do it.


pansophic
 
Well, you could just open a terminal under your X session and type init 3 and wait for it to drop back down to init 3 (runlevel 3). Do take note however that services are configured on a per-init level basis. What this means it that for example your apache web server may be configured to run at init-3 but not at init-4 or init-5. So when you change init levels, services will be stoped and started based on the init level configuration. If you are not carefull, you'll end up disconnecting your users from any services your machine is hosting at the time. This is especially true for servers.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top