Forum

Full Version: rc.local executes twice
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This might be a debian issue, but rc.local executes twice when booting.
But maybe ur something executes by rc.local AND by something else?
(18th May, 2013 02:13 PM)kraleksandr Wrote: [ -> ]But maybe ur something executes by rc.local AND by something else?

no. it is rc.local that executes twice.
Yeah, same issue here. I only execute some cache related commands, so it's not a real issue for me and I never investigated it further.

But the xbian team is working very hard on the new Beta 1 version, which will change a lot of the complete system and a new Rpi kernel/firmware. So if it's not a real issue for you, you should wait for Beta 1.
Not a big issue, just thought I mention it Smile
(18th May, 2013 11:24 AM)mihailescu2m Wrote: [ -> ]This might be a debian issue, but rc.local executes twice when booting.

check header (first lines) of /etc/init.d/rc.local file.
there is line like:
Code:
# Default-start: 2 3 4 5

there should be just this "2 3 4 5". if it is so, then run
Code:
find /etc/rc?.d -iname S??rc.local

you should get only rc2.d, rc3.d, rc4.d and rc5.d in output.

if not, run
Code:
insserv -r /etc/init.d/rc.local; insserv -d /etc/init.d/rc.local

if still started twice
Code:
grep -ir rc.local /etc/init.d

you will get all scripts, where rc.local is inside (and probably launched). I suppose it will be /etc/init.d/bootlocal.

edit the file a comment rc.local out.

mk

this will be solved in beta1
thanks.
Reference URL's