Is /etc/rc.local called twice on boot?

Colin Law clanlaw at gmail.com
Wed Oct 27 09:21:44 UTC 2021


On Wed, 27 Oct 2021 at 09:38, Bo Berglund <bo.berglund at gmail.com> wrote:
>
> Well, I just commented out the call in rc.local and then set it in crontab
> instead.
> Had to fix the path in crontab since it does not include sbin by itself..
> But then it worksas intended which I reported in my previous post.

Your script works as intended, but you are still calling rc.local
twice.  Today this does not matter, but if you forget and add
something there again then you will fall over it again.

Colin




More information about the ubuntu-users mailing list