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

Colin Law clanlaw at gmail.com
Tue Oct 26 14:54:48 UTC 2021


On Tue, 26 Oct 2021 at 15:19, Bo Berglund <bo.berglund at gmail.com> wrote:
>
> On Tue, 26 Oct 2021 10:51:24 +0100, Colin Law <clanlaw at gmail.com> wrote:
>
> >>
> >> This is the *only* command inside rc.local:
> >>
> >> /home/bosse/bin/ipreport.sh 60 &
> >>
> >
> >Add a command to log something from there and then you can check
> >whether it is being called twice or whether something else is going
> >on.
>
> Now done that including a timestamp with seconds, now I have to wait until the
> next restart to see if it works properly or not.

Another thing to look at is
grep "rc.local" /var/log/syslog
and see what it says.  If it shows nothing then the log might have
been rotated so try syslog.1

Colin




More information about the ubuntu-users mailing list