LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2003, 10:38 PM   #1
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
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....
 
Old 09-22-2003, 10:47 PM   #2
MaximumLinux
LQ Newbie
 
Registered: Dec 2002
Location: Melbourne, Australia
Distribution: OpenSuSE
Posts: 15

Rep: Reputation: 0
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.
 
Old 09-22-2003, 10:47 PM   #3
jcksrobbins
Member
 
Registered: Oct 2002
Location: Idaho
Posts: 55

Rep: Reputation: 15
You can use either "init" or "telinit".

For example: $ init 3
$ telinit 5
 
Old 09-22-2003, 10:48 PM   #4
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
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
 
Old 09-22-2003, 10:53 PM   #5
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
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?
 
Old 09-22-2003, 11:05 PM   #6
MaximumLinux
LQ Newbie
 
Registered: Dec 2002
Location: Melbourne, Australia
Distribution: OpenSuSE
Posts: 15

Rep: Reputation: 0
Talking

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.
 
Old 09-22-2003, 11:07 PM   #7
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
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
 
Old 09-22-2003, 11:10 PM   #8
MaximumLinux
LQ Newbie
 
Registered: Dec 2002
Location: Melbourne, Australia
Distribution: OpenSuSE
Posts: 15

Rep: Reputation: 0
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.
 
Old 09-22-2003, 11:14 PM   #9
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
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...
 
Old 09-22-2003, 11:24 PM   #10
MaximumLinux
LQ Newbie
 
Registered: Dec 2002
Location: Melbourne, Australia
Distribution: OpenSuSE
Posts: 15

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 02:10 PM
runlevel eaglegst Linux - Software 1 02-23-2004 01:54 AM
Runlevel 5 lapthorn Linux - Newbie 6 12-03-2003 06:23 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 07:24 AM
which runlevel? adme Linux - Software 8 02-11-2003 12:05 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration