LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-15-2005, 09:43 AM   #1
Royle
Member
 
Registered: Apr 2004
Posts: 112

Rep: Reputation: 15
New to debian, wondering about runlevels.


I have just recently moved from gentoo to debian. In gentoo I would use the tool rc-update to change how my system booted. How do I do this in debian? Also how would I write a start up script? If someone could link me to a good guide that would be great. Thanks in advance for your help.
 
Old 01-15-2005, 12:23 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
the runlevel links are at their dir's in /etc/rcX.d
/etc/init.d/* are the real scripts for starting/stopping, so you can put your script there and link it to the wanted runlevel(s).

sl mritch.
 
Old 01-15-2005, 12:33 PM   #3
rbochan
Member
 
Registered: Dec 2004
Location: Central New York
Distribution: Debian
Posts: 218

Rep: Reputation: 30
Try this command:
cat /etc/init.d/README
You might also look into the update-rc.d and sysvinit commands.
 
Old 01-15-2005, 01:19 PM   #4
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
# apt-cache show sysv-rc-conf
[...]
Description: SysV init runlevel configuration tool for the terminal sysv-rc-conf provides a terminal GUI for managing "/etc/rc{runlevel}.d/" symlinks. The interface comes in two different flavors, one that simply allows turning services on or off and another that allows for more fine tuned management of the symlinks. Unlike most runlevel config programs, you can edit startup scripts for any runlevel, not just your current one.
 
Old 01-15-2005, 05:45 PM   #5
Shrei
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
you can also check /etc/inittab, man inittab, that file tells the sysinit at what runlevel init your machine.
look for something like id:5:initdefault: <- the 5 is for runlevel 5 (MultiUser-Graphical).
 
Old 01-17-2005, 07:35 AM   #6
tjwhaynes
LQ Newbie
 
Registered: May 2004
Location: Toronto, Canada
Distribution: Mandrake Cooker, Mandrake Community, Fedora Core 1
Posts: 3

Rep: Reputation: 0
Debian runlevels.

Beware - Debian has different assignments to runlevels than, say, Mandrake or Redhat. I think that runlevel 3 is the default graphical login on a Debian box - that is the case on my Ubuntu box.

Cheers,
Toby Haynes
 
Old 01-17-2005, 10:10 AM   #7
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
On Debian the default graphical login is runlevel 2.
 
Old 01-17-2005, 12:03 PM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Technically, the default run level in Debian is 2 period. You decide if you want the default to be CLI or GUI. I believe that run levels 2 - 5 are identical & available for us to customize as we see fit. A major PITA for those of us to who came to Deb from a distro w/ the familiar RH structure:

- 0 = halt
- 1 = single user

- 2 = CLI, multi-user, no net
- 3 = CLI, multi-user, networked
- 4 = open
- 5 = GUI, multi-user, networked

- 6 = reboot

color coded "universal" and "Red Hat addition", just in case there are new folk reading this.


I know at least one Debian guru who gives the impression that any complaint about this is whining. He doesn't actually use the word whining, he just doesn't take the complaints too seriously -- sort of "If you don't like it, change it; that's what Free Software is all about."

I haven't used Mepis much yet, but it is both Debian based & has the RH run level structure -- in my book, the best of both worlds.

One of the reasons this run level structure is so useful, is that it allows you to construct a boot menu that allows you to choose CLI or GUI on start up: Just as a kernel parameter of "single" or "1" forces single user mode, a kernel parameter of any of the digits 2-5 forces that run level. This will work in either GRUB or lilo, perhaps more easily in GRUB.

This is documented in man bootparam

I have personally tested it using the GRUB menu line editor.

Hope this last part is useful, & not too off topic.

Tnx to rbochan & zuralin for the useful references, this is an issue that has troubled me, too.

Royle, what exactly do you want to change, & what kind of a start-up script do want to write?
 
  


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
Just wondering - is SUSE related to Debian? bp12345 SUSE / openSUSE 1 08-27-2005 10:25 PM
Configure runlevels on Debian Impaler Linux - Software 3 10-31-2004 03:49 PM
Debian Newbie: Setting up APT server list, runlevels? wellmt Debian 7 10-16-2004 01:58 PM
RunLevels bcom Mandriva 3 05-31-2004 08:07 PM
Debian Runlevels esje Linux - Newbie 2 04-25-2004 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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