[Rasbain]開機啟動insserv: warning

Share on FacebookShare on Google+Tweet about this on TwitterShare on Tumblr

Problem:

insserv: warning: script ‘xxxxxx’ missing LSB tags and overrides

Solution:

in your auto_start.sh write like this:

#!/bin/sh
### BEGIN INIT INFO
# Provides:          php_fastcgi.sh
# Required-Start:    $local_fs $remote_fs $network $syslog
# Required-Stop:     $local_fs $remote_fs $network $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts the php_fastcgi daemon
# Description:       starts php_fastcgi using start-stop-daemon
### END INIT INFO

python xxx.py

than run

sudo update-rc.d runner defaults

Congratulation Finish ! try to reboot your pi ^______^