Results 1 to 3 of 3

Thread: LSB style header

  1. #1
    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Beans
    Hidden!

    LSB style header

    I have made a fresh installation of 8.10 server edition and want to run a startup script and issued following command but received a warning:

    sudo update-rc.d my_start_script defaults

    update-rc.d: warning: /etc/init.d/my_start_script missing LSB style header

    Adding system startup for /etc/init.d/my_start_script ...
    /etc/rc0.d/K20my_start_script -> ../init.d/my_start_script
    /etc/rc1.d/K20my_start_script -> ../init.d/my_start_script
    /etc/rc6.d/K20my_start_script -> ../init.d/my_start_script
    /etc/rc2.d/S20my_start_script -> ../init.d/my_start_script
    /etc/rc3.d/S20my_start_script -> ../init.d/my_start_script
    /etc/rc4.d/S20my_start_script -> ../init.d/my_start_script
    /etc/rc5.d/S20my_start_script -> ../init.d/my_start_script

    The script 'my_start_script' is in /etc/init.d and is executable ...
    How can I fix this or can I just neglect it

  2. #2
    Join Date
    Jun 2008
    Location
    Hurst, TX
    Beans
    22
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: LSB style header

    I have the same issue while trying to add a script set my network card to 10Mbs full duplex.

  3. #3
    Join Date
    Sep 2005
    Location
    Chicago, IL - USA
    Beans
    24
    Distro
    Ubuntu 5.10

    Re: LSB style header

    Greetings:

    I found a link to this Debian info for startup scripts.

    http://wiki.debian.org/LSBInitScripts/

    Adding the below and replacing with the info for my script resolved this for me:

    #!/bin/bash
    #
    ### BEGIN INIT INFO
    # Provides: defaultdaemon
    # Required-Start: $remote_fs $syslog
    # Required-Stop: $remote_fs $syslog
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Start daemon at boot time
    # Description: Enable service provided by daemon.
    ### END INIT INFO

    .... rest of script


    HTH
    Bill.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •