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

Raspberry Pi OS • Re: rc.local does not exist and cannot recreate function

$
0
0

2) I thought the consensus was that the rc.local service itself was being eliminated (along with the file), so that just creating the file wouldn't work. You essentially have to re-invent and re-implement the whole shebang. Is that not right?
Pedantically speaking, this is correct, but practically speaking, it's incorrect. As I explained here: viewtopic.php?p=2283266#p2283266 (a reply in this thread)
rc.local is only run if it exists and is properly protected. A systemd generator (man systemd-rc-local-generator) decides whether the rc.local service should be run or not. It's a binary, so not sure what it depends on, but if you create it as I suggested above, it will run.

Statistics: Posted by bls — Tue Jan 07, 2025 12:51 am



Viewing all articles
Browse latest Browse all 4972

Trending Articles