chkconfig-ify an exising init script.
If you are using a 3rd party application / package installer to install a service onto a system that using chkconfig to manage your run-levels, or writing your own which are incompatible with chkconfig. That is to say when trying to add them you get the following error:
# chkconfig <service> on
service <service> does not support chkconfig
Then it needs to be converted to support chkconfig. Don’t worry, it isn’t a rewrite, its just adding some meta-data to the init script.
Just edit the config and add the following lines just below the sha-bang (#!/bin/bash or #!/bin/sh).
# chkconfig: 2345 95 05
NOTE: The numbers on the chkconfig line mean:
That on runlevels 2,3,4 and 5, this subsystem will be activated with priority 95 (one of the lasts), and deactivated with priority 05 (one of the firsts).
The above quote comes from this post where I found this solution, so I am passing it on.
For those playing along at home, chkconfig is the Redhat/Centos/Fedora way of managing your run-levels.