8/20/10

Chkconfig Tool

chkconfig provides a simple command-line tool for activating and deactivating services. It is used for managing the collection of symlinks in /etc/rc[0-6].d directories.

By simply typing chkconfig under root privileges you can see the list of services available indicating the init level the service is on for.

[root@localhost ~]# chkconfig

NetworkManager   0:off 1:off 2:on 3:on 4:on 5:on 6:off

abrtd                      0:off 1:off 2:off 3:on 4:off 5:on 6:off

acpid                      0:off 1:off 2:on 3:on 4:on 5:on 6:off

atd                          0:off 1:off 2:off 3:on 4:on 5:on 6:off


The following is an example disabling the bluetooth service on startup. This allows for computers like mine who don't have bluetooth the need for the PC to start the service.

#chkconfig bluetooth off
#chkconfig

bluetooth 0:off 1:off 2:off 3:off 4:off 5:off 6:off



**For more in-depth information using chkconfig refer to the man pages.

No comments:

Post a Comment