Add the following line to the end of /etc/rc.local (before the exit 0) on the Raspberry Pi to have the service start up automatically:
sudo -u pi python3 /home/pi/Desktop/Deploy/src/main.py > /home/pi/Desktop/camera.log &
To examine the log, open a terminal and type:
tail -f /home/pi/Desktop/camera.log
Add the following line to the end of
/etc/rc.local
(before theexit 0
) on the Raspberry Pi to have the service start up automatically:sudo -u pi python3 /home/pi/Desktop/Deploy/src/main.py > /home/pi/Desktop/camera.log &
To examine the log, open a terminal and type:
tail -f /home/pi/Desktop/camera.log