Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    [solved] empty runlevels overide LSB defaults

    Fixed it, see below.

    I have learned a lot trying to figure this out, but I cannot seem to come to a solution. I am writing my first bash script via init.d and updaterc.d in order to boot a python file on startup.

    I am working on a raspberry pi which is based off dibian.

    # Provides: superHouse
    # Required-Start: $local_fs
    # Required-Stop: $local_fs
    # Default-Start: 2 3 4 5
    #Default-Stop: 0 1 6
    #! /bin/sh
    # /etc/init.d/superhouse
    case "$1" in
           sudo python /home/pi/
           echo "Superhouse Started"
           echo "Power Down"
           exit 1
            echo "Power Down"
            exit 1
    exit 0
    I changed permissions of the file
    sudo chmod 755 superhouse
    ran updaterc.d
    sudo updaterc.d superhouse defaults
    I had a bunch of errors that I got rid of by removing all of the spaces and indentation in the script (Why?)

    The only error that I have left is :
    insserv: warning: current start runlevel(s) (empty) of script 'superhouse' overrides LSB defaults (2 3 4 5).
    Upon doing some poking around, I found that there are no start up scripts in any of the rcx.d folders. There are some kill files though. That being said, the "Power Down" message is shown on reboot and shutdown. But the "Superhouse Started" is not printed on startup, nor is the script,, executed.

    Thanks in advance for your help
    Last edited by saniel; 02-23-2013 at 02:59 PM. Reason: SOLVED

  2. #2
    updaterc.d -f superhouse remove
    updaterc.d superhouse defaults

Posting Permissions

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