Upstart Python Script
I need to run code located /home/pi/Hello_on_startup.py each time RaspberryPi restarts For that I created hello.conf file in /etc/init/ directory description 'A script controlled
Solution 1:
You need a script...end script
block in your conf file for it to be recognised, as shown here. Your resulting hello.conf
file would look as follows:
description "A script controlled by upstart"
author "Anton"
start on runlevel [2345]
stopon runlevel [016]
respawn
script
exec /home/pi/Hello_on_startup.py`
end script
There is also a similar question on AskUbuntu.
Post a Comment for "Upstart Python Script"