LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   go to runlevel 3??? (https://www.linuxquestions.org/questions/linux-newbie-8/go-to-runlevel-3-a-95707/)

yenonn 09-22-2003 09:38 PM

go to runlevel 3???
 
i am now in runlevel 5... how can i go to runlevel 3? and init 5?
what is the commands? thanks....

MaximumLinux 09-22-2003 09:47 PM

To change to run level 3 type
init 3
at the command line. su if you have to.

You want to be careful setting the default runlevels so I suggest reading up on some info.

Here is a good link to locating the Red Hat directions on Runlevels.
Here.

jcksrobbins 09-22-2003 09:47 PM

You can use either "init" or "telinit".

For example: $ init 3
$ telinit 5

joseph 09-22-2003 09:48 PM

Re: go to runlevel 3???
 
Quote:

Originally posted by yenonn
i am now in runlevel 5... how can i go to runlevel 3? and init 5?
what is the commands? thanks....

What do you mean exactly?
if you want to run in run level 3, go to /etc and edit your inittab, search the "init:5:default" and change it to "init:3:default"
reboot your linux

yenonn 09-22-2003 09:53 PM

i am now in runlevel 5... now, i wan to restart all of the services in runlevel 5... i am thinking of going to runlevel 3 and then, init 5... can i do this?

MaximumLinux 09-22-2003 10:05 PM

Yes you could do that.

But what do you want to do this for?

Is your X server playing up?
If you need to restart the X Window session just press CTRL + ALT + Backspace.

yenonn 09-22-2003 10:07 PM

yes, my x-windows is playing up? curious...just asking... terminating the windows session, does it restarting all the services run on runlevel 5?? i really doubt for it.... pls revert... thanks

MaximumLinux 09-22-2003 10:10 PM

If this is what is causing your problem, you can restart the X Session and restart it by using the key combination mentioned earlier.

No it does not restart all of the services on runlevel 5.

yenonn 09-22-2003 10:14 PM

my intension is to restart all the services by prompting some commands... i am so sick to rebooting the machine... as what windows does...show me some ways to do this...

MaximumLinux 09-22-2003 10:24 PM

A great command to use for restarting a service is exactly that.
If you know the service that you wish to restart, for example smb then issue the command

service smb restart

if you wish to see the list of commands with service for a given service then type

service smb

service scripts are located in /etc/rc.d/init.d and you can run the commands from there to start, stop, restart .. etc.


All times are GMT -5. The time now is 05:05 PM.