Forum
[PROBLEM] rc.local executes twice - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: [PROBLEM] rc.local executes twice (/thread-908.html)



rc.local executes twice - mihailescu2m - 18th May, 2013 11:24 AM

This might be a debian issue, but rc.local executes twice when booting.


RE: rc.local executes twice - kraleksandr - 18th May, 2013 02:13 PM

But maybe ur something executes by rc.local AND by something else?


RE: rc.local executes twice - mihailescu2m - 18th May, 2013 04:05 PM

(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.


RE: rc.local executes twice - namtih - 18th May, 2013 05:02 PM

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.


RE: rc.local executes twice - mihailescu2m - 18th May, 2013 07:51 PM

Not a big issue, just thought I mention it Smile


RE: rc.local executes twice - mk01 - 18th May, 2013 10:33 PM

(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


RE: rc.local executes twice - mihailescu2m - 19th May, 2013 10:06 AM

thanks.