I have a python program weather.py that I want to run at the beginning, it collects the weather data from some sensors.
In /etc/rc.local I wrote the line:
sudo python3 /home/pi/weather/weather.py &
When I look at the processes, I see two processes:
pi @ raspberrypi: ~ $ ps -ef | grep weather
root 589 1 0 05:48? 00:00:00 sudo python3 /home/pi/weather/weather.py
root 605 589 66 05:48? 00:01:46 python3 /home/pi/weather/weather.py
pi 1114 1103 0 05:51 pts / 0 00:00:00 grep --color = auto weather
How can I know where the second one comes from?