Your Open Source

 
Related Posts

Using the 'chkconfig' utility to add or remove services from starting up automatically on RedHat linux server

Using the 'chkconfig' utility to add or remove services from starting up automatically on RedHat linux server



'Chkconfig' is a RedHat specific utility that allows you to view which or add/remove services from starting up automatically on a RedHat linux server.

To view the current startup status of a specific service, use the following commands:

chkconfig --list | grep

example: chkconfig --list | grep httpd

which should return something like this:

httpd 0ff 1ff 2ff 3n 4ff 5n 6ff

Each number indicates a system run-level following by the startup status(on or off). The default linux run-level is 3(run-level 5 if you boot a graphical interface, however unlikely), but you usually want to make runlevels 2,3,4 and 5 the same status to be safe. To enable or disable a service for run-levels 2,3,4 and 5, use the command below:

chkconfig --level 2345

example: chkconfig --level 2345 httpd on

After all the above, you should see the service listed in chkconfig, and it should start on boot.

  • hits 258
  • datetime Jul 31 09 02:14:07
  • author Tjrambabu
  • rating

Rating : 12345
Tags :- Linux

Answers

No Answers..
Your Name:
Your Answers :
<> is a code tag
Preview
Enter the verification code: