0

Cause Ubuntu uses Upstart instead of init, there is some different from Red Hat.
But How can I get the list of each runlevel number standing for, such as init 0 means shutdown.
man init can't show the list. So which command or man page cant print the list.
Thx!

3 Answers 3

1

Try man telinit

However, the runlevels in Ubuntu are:

Code        Description
0           Halt
1           Single-user mode
2           Graphical multi-user with networking
3-5         Unused but configured the same as runlevel 2
6           Reboot
2
  • man telinit doesn't list as up. Thx all the same.
    – Honghe.Wu
    Nov 4, 2013 at 2:10
  • you can easily make runlevels 2-5 mean whatever you want. i have even added runlevel 7 to my system (reboot via kexec).
    – Skaperen
    Sep 9, 2017 at 5:32
1

The correct runlevels on Ubuntu would be:

 Runlevel        Target Units                          Description
 ========================================================================================
     0           runlevel0.target, poweroff.target     Shut down and power off the system.
     1           runlevel1.target, rescue.target       Set up a rescue shell, single user mode.
     2           runlevel2.target, multi-user.target   Set up a non-graphical multi-user system -> - Network, - GUI.
     3           runlevel3.target, multi-user.target   Set up a non-graphical multi-user system -> + Network, - GUI.
     4           runlevel4.target, multi-user.target   Set up a non-graphical multi-user system -> special purposes.
     5           runlevel5.target, graphical.target    Set up a graphical multi-user system -> + Network, + GUI.
     6           runlevel6.target, reboot.target       Shut down and reboot the system.

Meaning:

-: Absent

+: Present

0

Run levels vary per distribution, but in general:

Runlevel 0: Power off, halted.
Runlevel 1: Single user mode.
Runlevel 6: Reboot.

Usually one of 3,4, or 5 stands for 'multi user', but there is much more variation in these.

2
  • Thx, though you still didn't solve my problem. It seems that I have seen the command to show the whole runlevel list before, but can't remember anyway today.
    – Honghe.Wu
    Apr 14, 2013 at 13:45
  • I can't remember the name either. I usually just search though /etc/inittab and use tellinit. That used before upstart arrived. The closest I come this days is apt-get install chkconfig followed by chkconfig --list service_name
    – Hennes
    Apr 14, 2013 at 13:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .