LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-21-2012, 06:22 PM   #1
somb
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
debian and ubuntu don't allow reaching runlevel 3 unlike mandriva and centos


Hi,

I am using a distribution based on debian squeeze and I want to get to runlevel 3.

How can this be achieved?
"sudo telinit 3" does not do the trick.

Same problem exists with ubuntu.

mandriva and centos do it naturally.

Thanks.
 
Old 08-21-2012, 07:55 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

for me, open a terminal and get root then shutdown the login manager,
I have sudo disabled so use su


Code:
sudo /etc/init.d/loginmanager.sh stop
change loginmanager to gdm3 or kdm or nodm etc

ubuntu uses upstart so me thinks you might try

service "loginmanager" stop

Last edited by aus9; 08-21-2012 at 07:56 PM.
 
Old 08-21-2012, 08:01 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by somb View Post
I am using a distribution based on debian squeeze and I want to get to runlevel 3.

How can this be achieved?
"sudo telinit 3" does not do the trick.
What happens? What do you expect to happen?

On Debian, unless you've customized your run levels, 3 should be the same as the default runlevel (2). Thus you should not expect anything to happen: see the "CHANGING RUNLEVELS" section in the telinit man page, in particular the first two sentences of the last paragraph:
Quote:
When init is requested to change the runlevel, it sends the warning signal SIGTERM to all processes that are undefined in the new runlevel. It then waits 5 seconds before forcibly terminating these processes via the SIGKILL signal.
If runlevels 2 and 3 have the exact same services defined, none of them will be killed.

HTH,

Evo2.
 
  


Reply



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 01:10 PM
Mandriva 2006, apache not reaching an alliased page uzimadawa Linux - Server 1 12-02-2006 11:36 AM
Change runlevel in ubuntu (Debian) GNUROCKS Linux - Newbie 2 12-12-2005 03:00 PM
reaching runlevel 4 automaticly berrance Slackware 6 02-19-2005 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:40 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
Open Source Consulting | Domain Registration