Page 1 of 1

trying to run a .py script for startup

Posted: Fri Sep 20, 2013 7:17 pm
by fawked
i made my own menu for launching things that works arleady,but i'm having issues of getting my RasPi to boot to the .py file.
i made a .conf in etc/init folder that looks like....

Code: Select all

  # kyle likes his pi to go

        description "Kyle Likes His Pi To Go"
        author "pi"

        start on runlevel [2345]
        stop on runlevel [016]
        chdir /home/pi/
        exec python /home/pi/Desktop/menu/pitogo/pitogo.py
        respawn
which i stole from http://www.raspberrypi.org/phpBB3/viewt ... 37&t=49153
when i try to test the launch it gives me something along the lines of 'don't know what this service is'
any ideas. if you know of a better tutorial of sorts for making a python script launch at startup, feel free to link and i'll learn myself ;)
thanks for reading
kyle