12-03-2018, 04:29 PM
I'm obviously a rpi newb here, but I have a couple startup scripts I created, one is a bash script and another is a python script. They are "infinite loop" scripts that listen for GPIO inputs and perform actions based on that (one is a shutdown script the other is runs raspivid to start my backup camera).
The scripts work great, and when I add them to /etc/rc.local and make rc.local executable, it works fine. But for some reason, any time my pi shuts down and reboots, rc.local no longer runs them. I need to manually make rc.local executable again every time I reboot.
Is there a better way to do this? Ideally, a useful feature would to add to this project would be to have a blank bash script file and a blank python script file that users can populate w/ custom scripts, and the system will automatically execute them on startup. I'm coming from crankshaft and they have this feature alreaday.
In the meantime, if someone can help me out with a reliable way to execute my startup scripts I'd greatly appreciate it!