I created a python script that I would like to execute at each startup. I modified the etc/rc.local, but I don't get the script to run.
etc/rc.local addition (I added the sleep thinking it may help):
(sleep 10; /usr/bin/python3 /home/pi/mower-gps-tracking/app/gps_logger.py)&
imports in the different python scripts (I don't know if it matters):
from ftplib import FTP
import os
import serial
import time
import threading
from gpiozero import LED, Button
When I start the etc/rc.local manually via a ssh command, it runs fine.
Any idea what I'm missing ?
/etc/rc.localscript. You may need to usesystemdorcrontab. Have a look at this question.