sarosh 0 Newbie Poster

hi everyone...
we have to run any python file e.g. show.py at startup..i.e. when OS starts it runs automatically.
we are proceeding this way,
writing a startup script named forfyp2 ,pasting it in init.d , making it exe using chmod , creating startup links using update-rc.d forfyp2 defaults. After this i think i should run at stratup automatically, but it is not:( ..please tell if any errors r there..thank you.
code is here...

#! /bin/sh  
### BEGIN INIT INFO
# Provides:          forfyp2
# Required-Start:    $local_fs $syslog $remote_fs 
# Required-Stop:     $local_fs $syslog $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start the usrpcode
### END INIT INFO
DESC=forfyp2.sh
DAEMON3=/etc/init.d/show.py
case "$1" in
  start)
         su - sarosh -c "sudo python $DAEMON3 start" 
         start-stop-daemon --start --quiet --exec $DAEMON3 || true 
         ;; 
  stop)
         su - sarosh -c "$DAEMON3 stop"
         start-stop-daemon --stop --quiet --exec $DAEMON3 || true
	 ;;
restart|force-reload)
	$0 stop	
	$0 start
	;;
  status)
       status_of_proc "$DAEMON3" "$DESC" && exit 0 || exit $?
	;;
  *)
        N=/etc/init.d/forfyp2
        # echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
	echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
	exit 1
	;;
esac

exit 0

# vim:not

where show.py is simply,for the time being, for testing.

#!/usr/bin/env python
print "i am sarosh"