Code: Select all
## BEGIN INIT INFO
# Provides: superHouse
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
#Default-Stop: 0 1 6
### END INIT INFO
#! /bin/sh
# /etc/init.d/superhouse
case "$1" in
start)
sudo python /home/pi/superHouse.py
echo "Superhouse Started"
;;
stop)
echo "Power Down"
exit 1
;;
*)
echo "Power Down"
exit 1
;;
esac
exit 0
Code: Select all
sudo chmod 755 superhouse
Code: Select all
sudo updaterc.d superhouse defaults
The only error that I have left is :
Code: Select all
insserv: warning: current start runlevel(s) (empty) of script 'superhouse' overrides LSB defaults (2 3 4 5).
Thanks in advance for your help