Fedora Core Linux chkconfig does not display service name

last updated in Categories

Q. I have server / service is installed but it does not show up in the chkconfig –list output. I need to use full path /etc/init.d/service start. I am using Fedora Core Linux and Cent OS (RHEL based) distos.

How do I solve this problem?

A. Use –add option to add the service to chkconfig database. For example:
# chkconfig --add lighttpd

Where,

  • lighttpd: Service name.

Now see the list with the following command:
# chkconfig --list | less

To turn on service at boot time:
# chkconfig lighttpd on

To turn off service at boot time:
# chkconfig lighttpd off

Read man page of chkconfig for more information.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.