List of services and corresponding runlevels


Run levels
================
On the console, you use the chkconfig tool list and specify which services to run at different
runlevels.

List of services and corresponding runlevels

[root@server ~]# chkconfig --list
acpi-support              0:off  1:off  2:on   3:on   4:on   5:on   6:off
acpid                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
alsa-restore              0:off  1:off  2:off  3:off  4:off  5:off  6:off
alsa-store                0:off  1:off  2:off  3:off  4:off  5:off  6:off
anacron                   0:off  1:off  2:off  3:off  4:off  5:off  6:off
apparmor                  0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
apport                    0:off  1:off  2:off  3:off  4:off  5:off  6:off
atd                       0:off  1:off  2:off  3:off  4:off  5:off  6:off
autofs                    0:off  1:off  2:off  3:off  4:off  5:off  6:off
avahi-daemon              0:off  1:off  2:off  3:off  4:off  5:off  6:off
bind9                     0:off  1:off  2:on   3:on   4:on   5:on   6:off
binfmt-support            0:off  1:off  2:off  3:off  4:off  5:off  6:off
bluetooth                 0:off  1:off  2:off  3:off  4:off  5:off  6:off
bootlogd                  0:off  1:off  2:off  3:off  4:off  5:off  6:off
brltty                    0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on



As you can see, the first column provides the service name, followed by the runlevels from 0-6,
separated by spaces. If the runlevel is followed with :on, the service will run on that level. Runlevels 0
and 6 are used for shutting down and rebooting, respectively, and so services should never be started in
these levels.

To add a service in a particular runlevel, issue the command

chkconfig --level runlevels servicename on

ex: chkconfig --level 5 bluetooth on

No comments: