I am working a project to read an RFID tag, and make the buzzer sound. It works correctly in foreground. I call the python script via /etc/rc.local and it is triggered when I execute /etc/rc.local via ssh session. However, when I reboot my raspberry pi, the RFID reader does not respond. I can see the process via
ps -aef|grep python. I am following this tutorial.
/etc/rc.local I added this command just right before exit 0:
/usr/bin/python /home/pi/myscript.py &
To successful test it I log in as user pi from ssh and execute:
pi@raspberrypi:~ $ /etc/rc.local
Please help here.