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 on September 28, 2008

Disclaimer
1 - Use the information provided here at your own risk.
2 - You may not republish this content without prior written consent.




11 Comments »

  1. John:
     

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

    Comment — July 13, 2009 @ 6:57 pm

  2.  

    Many thanks! I am no longer lost!

    Comment — July 24, 2009 @ 12:38 pm

  3. Matt:
     

    Perfect.

    Ditto John’s comment.

    Thanks!

    Comment — July 27, 2009 @ 1:58 pm

  4. VIKAS:
     

    THanks, helped me. !!

    Comment — August 17, 2009 @ 3:15 pm

  5. Dan:
     

    Big eternal gratitude: you answered a long standing question.

    Comment — October 16, 2009 @ 6:34 pm

  6.  

    THanks, helped me. !!

    Comment — November 7, 2009 @ 12:57 am

  7. Emilio:
     

    Thanks! You made my day ;)

    Comment — November 12, 2009 @ 1:11 am

  8. JayaRaj:
     

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

    Comment — November 16, 2009 @ 9:26 am

  9. pharlah:
     

    thanks a bunch… you are a livesaver

    Comment — November 17, 2009 @ 8:03 am

  10. mr570:
     

    Thanks a million! Saved my @$$

    Comment — February 2, 2010 @ 9:12 pm

  11. Lee:
     

    Looked all over for this info.
    Thankyou.

    Comment — February 23, 2010 @ 4:28 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment