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!
Asked
Active
Viewed 3,615 times
3 Answers
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

slayernoah
- 289
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

George Udosen
- 36,677
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.

Hennes
- 1,233
-
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 '13 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 isapt-get install chkconfig
followed bychkconfig --list service_name
– Hennes Apr 14 '13 at 13:55
man telinit
doesn't list as up. Thx all the same. – Honghe.Wu Nov 04 '13 at 02:10