LinuxQuestions.org
Visit Jeremy's Blog.
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 10-31-2004, 08:28 AM   #1
Impaler
Member
 
Registered: Apr 2004
Location: Greece (Elladara!!)
Distribution: Debian
Posts: 59

Rep: Reputation: 15
Configure runlevels on Debian


Hi everyone,

I am trying to change to runlevel 3 but nothing happens. I am using runlevel 5, runlevel 1 and runlevel 6 (I can reboot my system). Does anyone know how can I configure my runlevels on my new Debian system?

Thanks
 
Old 10-31-2004, 01:25 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I've copied this from my /etc/inittab (SuSE). Compare you Deb to this, then try adjustments.
Code:
# # All scripts for runlevel changes are in /etc/init.d/. #
 # This file may be modified by SuSEconfig unless CHECK_INITTAB 
# in /etc/sysconfig/suseconfig is set to "no" #  
# The default runlevel is defined here 
id:5:initdefault:
  
# First script to be executed, if not booting in emergency (-b) mode 
si::bootwait:/etc/init.d/boot  

# /etc/init.d/rc takes care of runlevel handling # 
# runlevel 0  is  System halt   (Do not use this for initdefault!) 
# runlevel 1  is  Single user mode 
# runlevel 2  is  Local multiuser without remote network (e.g. NFS) 
# runlevel 3  is  Full multiuser with network # runlevel 4  is  Not used 
# runlevel 5  is  Full multiuser with network and xdm 
# runlevel 6  is  System reboot (Do not use this for initdefault!)
# 
l0:0:wait:/etc/init.d/rc  0 
l1:1:wait:/etc/init.d/rc  1
l2:2:wait:/etc/init.d/rc 2 
l3:3:wait:/etc/init.d/rc  3 
#l4:4:wait:/etc/init.d/rc  4 
l5:5:wait:/etc/init.d/rc  5 
l6:6:wait:/etc/init.d/rc 6  

# what to do in single-user mode
 ls:S:wait:/etc/init.d/rc S ~~:S:respawn:/sbin/sulogin
PS: you should be able to get into runlevel 3 by opening a term window and entering the command 'init 3'. By the same token, when in runlevel 3, you can get to runlevel 5 by using the command 'init 5'.

Last edited by bigrigdriver; 10-31-2004 at 01:29 PM.
 
Old 10-31-2004, 02:31 PM   #3
joshbaptiste
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
debian by default runs under init 2.... type "init 3" if ya want 3
 
Old 10-31-2004, 02:49 PM   #4
Impaler
Member
 
Registered: Apr 2004
Location: Greece (Elladara!!)
Distribution: Debian
Posts: 59

Original Poster
Rep: Reputation: 15
bigrigdriver : I have the same inttab with you, as with everyone. The problem is that the variables mentioned in the inittab can't find the path of my rc* scripts which were supposed to be at /etc/init.d/ folder. I have those files at /etc folder but I am afraid that if I am going to change the variables path I will lose the already working remaining runlevels.

joshbaptiste: its sure that I tried that before I submit this post....
 
  


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
netinstalling Debian - how to configure? persona_o Linux - Newbie 1 07-21-2005 10:57 PM
New to debian, wondering about runlevels. Royle Debian 7 01-17-2005 11:03 AM
Debian Newbie: Setting up APT server list, runlevels? wellmt Debian 7 10-16-2004 12:58 PM
Debian Runlevels esje Linux - Newbie 2 04-25-2004 03:20 PM
how to configure PCMCIA on Debian LordGrahf Linux - Networking 0 06-23-2003 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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