LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2003, 01:37 AM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
init 3 problems


I have searched on this board and on google and found some info. Still have not found what I am looking for. If I run these commands should this change my runlevel to three. It is not

su -
password
#init 3

When I do this it DOES NOT tell me "command not found" , it just does nothing

I am asking specifically about my slackware install. This command would work sporatically with redhat, not all of the time.
 
Old 11-13-2003, 01:44 AM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
What do you mean it does nothing?
You can check the runlevel you're in with the command
runlelvel

It gives two numbers as output: the first is the runlevel you were in before and the second is the current runlevel.

On your slack install, if you didn't change the inittab file, you are going to be in runlevel 3 by default, so it's not surprising if init 3 does 'nothing'.
 
Old 11-13-2003, 01:47 AM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
after I am in X(run-level 4) then run the command #init 3 ,should it return me to run-level three?

when I say it does nothing this is what happen

root@marsala:~# init 3
root@marsala:~#

Last edited by shanenin; 11-13-2003 at 01:49 AM.
 
Old 11-13-2003, 01:53 AM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
Quote:
It gives two numbers as output: the first is the runlevel you were in before and the second is the current runlevel.
this is the out put after giving the command runlevel
N 3

according to what you say I am currently in runlevel 3. If I have my X working doesnt that mean I am in runlevel 4. It must not, did I make a bad assumption.
 
Old 11-13-2003, 01:58 AM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Yes, it should return you to runlevel 3. Check what runlevel you are after doing it in with the command
runlevel

If you are doing init 3 on a text terminal, that's the output I'd expect.
Also, in Slackware doing init 3 might not kill X - though I might be wrong; I'm still learning Slackware.
 
Old 11-13-2003, 01:59 AM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
X can run in runlevel 3. If you are in runlevel 3 and do startx the runlevel won't change. So if you start X with startx, you never left runlevel 3 in the first place. If you use the graphical login, you will normally be in runlevel 4 (but you don't have to be).

Last edited by quatsch; 11-13-2003 at 02:01 AM.
 
Old 11-13-2003, 02:12 AM   #7
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
Quote:
X can run in runlevel 3. If you are in runlevel 3 and do startx the runlevel won't change. So if you start X with startx, you never left runlevel 3 in the first place. If you use the graphical login, you will normally be in runlevel 4 (but you don't have to be).
that seemes to be correct. I made a bad assumption that runlevel4 = X(GUI)
 
  


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
Zipslack on old computer, Problems with Init= garenthino Slackware - Installation 2 08-05-2005 03:21 AM
SuSE 9.2 Network init problems tpe Linux - Hardware 4 04-28-2005 04:27 AM
SuSE 9.2 Network init problems tpe Linux - Hardware 2 04-19-2005 11:44 AM
problems with startx and init 6 einstien Slackware - Installation 1 11-30-2004 10:25 AM
Problems with 'init' with Kernel 2.6.6 nealkochhar Linux - Newbie 15 06-21-2004 12:02 PM


All times are GMT -5. The time now is 11:30 AM.

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