A service is not starting after booting up.

I require a service named "X" to be started automatically every time we restart the Linux 6.2 machine.But it is not starting. I have included the service in Init.d folder by $chkconfig --add X.But the application is not starting automatically after every reboot.I need to invoke $service X start command to start the service.
How to troubleshoot this issue?

What does

chkconfig --list X

say? The output should look like in this example:

# chkconfig --list X
X               0:off   1:off   2:on    3:on    4:on    5:on    6:off

But if it reads

 # chkconfig --list X
X               0:off   1:off   2:off   3:off   4:off   5:off   6:off

you have to activate the service with

# chkconfig X on
1 Like