I have some python (.py) script's, and i need to run it at startup, how i can do it?
I need help, i can't run at startup
Ok, i tryed, but when make sudo update +x /etc/init.d script_startup defaults i receive this message:Jim Manley wrote:Create a file named something like /etc/init.d/startup_script and enter the following into the file:
The actual path to your Python file and the name of the file should be substituted for /home/pi/my_python.py in the above script.
Then, make startup_script executable:
sudo chmod +x /etc/init.d/startup_script
Finally, you need to register startup_script so that it will run during startup:
sudo update-rc.d startup_script defaults
Now, restart your Pi and enjoy your Python script doing its thing.