How to see system services are enable or disable in ubuntu 11.04(Natty Narwhal)
Chkconfig is a utility to update and query runlevel information for system services. Chkconfig manipulates the numerous symbolic links in /etc/init.d/, to relieve system administrators of some of the drudgery of manually editing the symbolic links.
In Debian, there are several tools with similar functionality, but users coming from other Linux distributions will find the tools in this package more familiar.
Go to Terminal and open it and type the command “chkconfig' press enter.
j[email protected]:~$ chkconfig
The program ‘chkconfig' is currently not installed. You can install it by typing:
sudo apt-get install chkconfig
“If chkconfig is not intall you will see the above massage”
to install “chkconfig”thpe this command “sudo apt-get install chkconfig”
[email protected]:~$ sudo apt-get install chkconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
Use ‘apt-get autoremove' to remove them.
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 9,222 B of archives.
After this operation, 69.6 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu/ natty/universe chkconfig all 11.0-79.1-2 [9,222 B]
Fetched 9,222 B in 0s (9,989 B/s)
Selecting previously deselected package chkconfig.
(Reading database ... 187622 files and directories currently installed.)
Unpacking chkconfig (from .../chkconfig_11.0-79.1-2_all.deb) ...
Processing triggers for man-db ...
Setting up chkconfig (11.0-79.1-2) ...
after installing just type “chkconfig”
you can see list of service which one is off or on in your system
[email protected]:~$ chkconfig
Allu John Sudhakar
to see my Blogger (for Ubuntu)http://allujohnsudhakar.blogspot.com
any help mail to me [email protected]
This tool is familliar for the personn who used to run redhat flavored dsitro.
There is a tool more debian-centric :
apt-get install sysv-rc-conf
Let’s you configure the the service and the rnulevel in semi graphic way.
Unfortunately, both chkconfig and sysv-rc-conf are a little outdated for ubuntu these days. More and more startup services have been converted to upstart jobs in the folder /etc/init. These tools do not always give accurate results for upstart jobs and may not allow you to enable and disable jobs as you would expect.