LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What's the difference between runlevel 2 and runlevel 5 in Debian? (https://www.linuxquestions.org/questions/linux-newbie-8/whats-the-difference-between-runlevel-2-and-runlevel-5-in-debian-169052/)

davidas 04-12-2004 04:35 AM

What's the difference between runlevel 2 and runlevel 5 in Debian?
 
david:/etc/rc5.d# ls
S10sysklogd S18quotarpc S20nfs-kernel-server S89atd S99xdm
S11klogd S20exim S20xfs S89cron
S14ppp S20inetd S20xprint S99rmnologin
S18portmap S20makedev S21nfs-common S99stop-bootlogd

david:/etc/rc2.d# ls
S10sysklogd S18quotarpc S20nfs-kernel-server S89atd S99xdm
S11klogd S20exim S20xfs S89cron
S14ppp S20inetd S20xprint S99rmnologin
S18portmap S20makedev S21nfs-common S99stop-bootlogd

On my system, they seem to be running exactly the same scripts. (In redhat, I think there are differences between runlevel 3 and runlevel 5).

Lastly, is there any command that can display the current runlevel?

Thanks :)

edal 04-12-2004 09:18 AM

Runlevel System State
0 Halt System
1 single user mode
2 Basic multi user mode without NFS,(The same as 3, if you don't have networking)
3 Full multi user mode (text based)
4 unused
5 Multi user mode with GUI
6 Reboot System

All of the above numbers may not be correct for Debian but 2 and 5 are almost certainly correct.

Ed Almos
Budapest, Hungary

stevethefiddle 01-05-2012 01:10 PM

Debian Runlevels
 
An old topic, but for anyone finding this on Google (as I did), the correct answer is:
Default Debian installation does not make any difference between runlevels 2-5.
http://wiki.debian.org/RunLevel


All times are GMT -5. The time now is 11:04 PM.