Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to get a start up script to work, i have a file /etc/init.d/blah (with 755 permissions) with the contents I have run "update-rc.d -f blah defaults". But when I reboot the script is not executing, can one of you help me out?

share|improve this question
What is the output of update-rc.d? – Danilo Piazzalunga Feb 18 '10 at 18:11

2 Answers 2

up vote 0 down vote accepted

You need to add specific information for update-rc.d to your script. You'll find an example in /etc/init.d/skeleton

share|improve this answer
Cheers grub. That worked. – user35326 Feb 19 '10 at 10:21

Perhaps you should take a look at /etc/init.d/skeleton in particular, but also other scripts in that folder, as a model for your script.

From man update-rc.d:

       update-rc.d has two modes of operation for installing scripts into  the
       boot  sequence.  A legacy mode where command line arguments are used to
       decide the sequence and runlevel configuration, and  the  default  mode
       where dependency and runlevel information in the init.d script LSB com‐
       ment header is used instead.  Such header is required to be present  in
       init.d  scripts.   See the insserv(8) manual page for details about the
       LSB header format.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.