You Are Here Home > service X does not support chkconfig

service X does not support chkconfig

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

service X does not support chkconfig
Filed under: General, Server   Posted by: Codehead

Got a Question?

Get answers here.

12 Comments »

  1. John:
     

    It was the first thing that popped up on Google, and the only thing I needed to add. Many Thanks!

    Comment

  2.  

    Many thanks! I am no longer lost!

    Comment

  3. Matt:
     

    Perfect.

    Ditto John’s comment.

    Thanks!

    Comment

  4. VIKAS:
     

    THanks, helped me. !!

    Comment

  5. Dan:
     

    Big eternal gratitude: you answered a long standing question.

    Comment

  6.  

    THanks, helped me. !!

    Comment

  7. Emilio:
     

    Thanks! You made my day ;)

    Comment

  8. JayaRaj:
     

    Thanks a Lot! Perfect!! Made my life easy .. feeling relaxed..

    Comment

  9. pharlah:
     

    thanks a bunch… you are a livesaver

    Comment

  10. mr570:
     

    Thanks a million! Saved my @$$

    Comment

  11. Lee:
     

    Looked all over for this info.
    Thankyou.

    Comment

  12. Brad:
     

    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

RSS feed for comments on this post. TrackBack URL

Leave a comment