I have beagleBoard and I want to start my script at boot time ( boot/reboot). So, i  ran command: update-rc.d GatewayStart.sh defaultsOutput which says: header is rejected    root@beaglebone:/etc/init.d# update-rc.d GatewayStart.sh defaults    update-rc.d: using dependency based boot sequencing    insserv: warning: script 'S18led_aging' missing LSB tags and overrides    insserv: warning: script 'led_aging.sh' missing LSB tags and overrides    insserv: There is a loop between service rmnologin and mountnfs if started    insserv:  loop involving service mountnfs at depth 9    insserv:  loop involving service networking at depth 8    insserv: There is a loop between service led_aging and mountall if started    insserv:  loop involving service mountall at depth 7    insserv:  loop involving service checkfs at depth 6    insserv:  loop involving service kbd at depth 8    insserv: There is a loop between service led_aging and mountall-bootclean if started    insserv:  loop involving service mountall-bootclean at depth 8    insserv: There is a loop at service rmnologin if started    insserv: There is a loop between service rmnologin and mountnfs-bootclean if started    insserv:  loop involving service mountnfs-bootclean at depth 8    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Max recursions depth 99 reached    insserv:  loop involving service saned at depth 1    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv:  loop involving service urandom at depth 10    insserv: There is a loop at service led_aging if started    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: Starting led_aging.sh depends on rmnologin and therefore on system facility `$all' which can not be true!    insserv: exiting now without changing boot order!    update-rc.d: error: insserv rejected the script headerI have copied header from other script and changed name in Provides Tag. My script is:#!/bin/bash### BEGIN INIT INFO# Provides:          GatewayStart.sh# Required-Start:    $local_fs# Required-Stop:     $local_fs# 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 INFOHOME=/home/debian{export PATH=$PATH:$HOME/Gateway/usr/lib/jvm/jdk-7-oracle-armhf/bin#tar -zxvf jdk-7-oracle-armhf.tar.gzecho $PATHexport JAVA_HOME=$HOME/Gateway/usr/lib/jvm/jdk-7-oracle-armhfcase $1 instop)echo in stop$HOME/Gateway/apache-karaf-3.0.2/bin/stopecho  stop done;; # case start end*)echo start or default runs$JAVA_HOME/db/bin/stopNetworkServer&sleep 15echo stopped derby$JAVA_HOME/db/bin/startNetworkServer&db_count=0while [ $db_count -ne 1 ]do   echo derby is not started yetsleep 10db_count=$($HOME/Gateway/usr/lib/jvm/jdk-7-oracle-armhf/db/bin/ij $HOME/Gateway/scripts.sql | grep -c selected)   echo $db_countdoneecho                           DB started                                      echo **********************************************************************************echo                           Bringing UP GATEWAY                                     echo **********************************************************************************echo $HOME$HOME/Gateway/IPUUartInterface/build/UDP_UART 127.0.0.1 30005 127.0.0.1 30004 /dev/ttyUSB0 4 x&echo command for UPD_UART ran$HOME/Gateway/apache-karaf-3.0.2/bin/stopecho if any previous instance is running , it is stopped$HOME/Gateway/apache-karaf-3.0.2/bin/startsleep 20a=1b=1while [ $b -lt 8 ] && [ $a -lt 9 ]do   echo $asleep 80a=$($HOME/Gateway/apache-karaf-3.0.2/bin/client -a 8101 -h 127.0.0.1 -u karaf bundle:list | grep -c Active)   echo now   echo $ab=$((b+1))doneecho while loop is overif [ $a -ne 9 ]then    echo karaf needs manual interruption    exit 0fiecho ***********************************************************************************echo                           Karaf is Running...                                      echo *********************************************************************************esacexit 0} >> $HOME/Reboot_log.txt
update-rc.d doesn't accept the header of a script file
bash;reboot;init.d;rc