Here is how to fix this:
(Assume the name of my script is myscript)
1 – Copy your script into /etc/init.d folder
2 – cd /etc/init.d
3 – chmod +x myscript
4 – Add these lines, including #, right after #!/bin/bash or #!/bin/sh:
# chkconfig: 2345 95 20
# description: Some description
# What your script does (not sure if this is necessary though)
# processname: myscript
5 – chkconfig –level 2345 myscript on
Hamid Alipour is a partner in Codehead, LLP with his wife, Tess. Hamid speaks 12 markup and programming languages [Yes, 12: PHP, CSS, Ajax, JavaScript, HTML/XHTML, Java, Python, C/C++, ASP, Visual Basic, Scheme and Action Script]; has a penchant for solving the unsolvable; an affinity for clean, hand-written code and is a Zend Certified 
It was the first thing that popped up on Google, and the only thing I needed to add. Many Thanks!
Comment
Many thanks! I am no longer lost!
Comment
Perfect.
Ditto John’s comment.
Thanks!
Comment
THanks, helped me. !!
Comment
Big eternal gratitude: you answered a long standing question.
Comment
THanks, helped me. !!
Comment
Thanks! You made my day
Comment
Thanks a Lot! Perfect!! Made my life easy .. feeling relaxed..
Comment
thanks a bunch… you are a livesaver
Comment
Thanks a million! Saved my @$$
Comment
Looked all over for this info.
Thankyou.
Comment
Hey. This worked. Thanks a bunch! Without your help I would not have figured out why I was getting the message that my script was not chkconfig compliant.
Comment