LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Why those extra run-levels in Debian? (https://www.linuxquestions.org/questions/debian-26/why-those-extra-run-levels-in-debian-712349/)

kushalkoolwal 03-17-2009 04:45 PM

Why those extra run-levels in Debian?
 
From Debian Doc it seems that runlevels 2-5 (multi-user) are all the same with default being 2.

Also the contents of the directories /etc/rc2.d/ to /etc/rc5.d/ are the same too.

Then what is the purpose of providing these additional run-levels? I am sure they might be for some special purpose which I am not aware off.

Anybody?

pljvaldez 03-17-2009 06:09 PM

Typically they're used so you can set up runlevels for whatever you like. In other distros, many times they are setup with something like

5 = multi-user graphical desktop with networking
4 = multi-user graphical desktop without networking
3 = multi-user text only with networking
2 = multi-user text only without networking

But you can modify the startup scripts for the different runlevels. Maybe you have a test server and you'd like a runlevel that only had apache and postfix running. Then you might have another runlevel that had mysql, apache, and sendmail. And on and on. Basically it just gives you some preconfigured options for boot levels. Debian doesn't set them up for you. By default they are all the same.

I use a command line tool to edit my runlevels, sysv-rc-conf that is an easy command line interface.


All times are GMT -5. The time now is 01:51 PM.