Using chkconfig in Ubuntu

The chkconfig tool is often used commonly in a RedHat style operating system. Mainly for managing system services. Chkconfig does not come with Ubuntu by default, but it is a package that can easily be installed and utilized.

To install it do

root@computer:~# apt-get install chkconfig

Now we can view system services using “chkconfig –list”

root@computer:~# 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

Services can be turned on using

root@computer:~# chkconfig <service> on

Or off using

root@computer:~# chkconfig <service> off

One can even add your own service, using a proper init script with proper headings.

chkconfig --add <service>

Chkconfig on Ubuntu can be a useful tool for managing system services. It offers great flexibility and ease of use.