LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 Guru
 
Registered: Oct 2003
Distribution: Fedora 25 Gnome (Wayland)
Posts: 5,132

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 Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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


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 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


All times are GMT -5. The time now is 08:21 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