Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4844

General discussion • rc.local does not exist and cannot recreate function

$
0
0
Hi & Thanks,
Setup: Pi Zero 2 W / Raspberry Pi OS Lite 64 bit (flashed within the last 2 weeks)
Description of problem: previously sketch was executing on startup. After reflashing SD card noted that rc.local did not exist. Recreated rc.local containing two lines of code:
python /home/pi/cam.py
exit 0
executed sudo chmod 777 /etc/rc.local
confirmed properties of rc.local showed all permission bits set
wrote very simple sketch that endlessly logged 1 second count to file (saved as cam.py)
tested via ssh and PuTTY - works
execute reboot
sudo killall python display “python: no process found”
examination of log file shows no entry

Info: several weeks ago, after reflashing SD card, noted that rc.local did not exist but was able to successfully recreate it and its functionality. Overlay file system has not been enabled.

Statistics: Posted by stevensarns — Sun Jan 05, 2025 6:54 pm



Viewing all articles
Browse latest Browse all 4844

Trending Articles