title: Debian Startup Script Will Not Start
body: <p>I was creating a startup BASH script, when I was given an error similar to:</p>
  
  <pre><code>The script is missing LSB tags
  </code></pre>
  
  <p>So I went and put in some LSB tags, but it still does not start on startup. The script works perfectly if I start it manually</p>
  
  <pre><code># /etc/init.d/myscript
  </code></pre>
  
  <p>It is a very simple script that is intended to startup a PERL script in the same folder (/etc/init.d/fcgiwrap.pl).</p>
  
  <pre><code>#!/bin/bash
  ### BEGIN INIT INFO
  # Provides:          scriptname
  # 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
  # Carry out specific functions when asked to by the system
  touch /var/lock/fcgiwrap
  case "$1" in
    start)
      echo "Starting script /etc/init.d/fcgiwrap.pl"
      /etc/init.d/fcgiwrap.pl
      ;;
    stop)
      echo "You can't stop this service. Consider deleting it"
      ;;
    *)
      echo "Usage: /etc/init.d/blah {start}"
      exit 1
      ;;
  esac
  
  exit 0
  </code></pre>