aptgre.blogg.se

Raspberry pi how to make a program run at startup
Raspberry pi how to make a program run at startup





raspberry pi how to make a program run at startup raspberry pi how to make a program run at startup

# Description: Will change directory, initialise insync-portable as your user, the change directory back for booting.Įcho "Usage: /etc/init. # Short-Description: Simple script to start insync-portable Just make sure where it says sudo -u pi to replace pi with your username. I tried the crontab entry and that didn’t work, but I did edit the init.d file so that pi and not root ran the command. I hope this helps troubleshoot the problem. home/pi/insync-portable/insync-portable quitĮcho "Usage: /etc/init.d/insync-portable start|stop" home/pi/insync-portable/insync-portable start Before doing this Instructable, please make sure you have your Raspberry Pi up and running, which you can do with The Ultimate Raspberry Pi Configuration Guide Instructable. # Carry out specific functions when asked to by the system This will make your Pi a more powerful electronics platform and is essential if, for example, you want to use your Pi as a video kiosk using GPIO controls. # If you want a command to always run, put it here # Description: A simple script from which will start / stop a program a boot / shutdown. This line is the path to your launcher file. # Short-Description: Simple script to start a program at boot Install your program as main.py on the board Paste our blink. The reboot statement specifies when you want this line to run. # Required-Start: $remote_fs $syslog $all Neither of these seem to work, or perhaps I’m doing something wrong? Here is the full text of my init.d file: #! /bin/sh For some extra information, I’ve added /home/pi/insync-portable/insync-portable start to my crontab, as well as the information on this page to create a file in init.d.







Raspberry pi how to make a program run at startup