Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] rc.local executes twice
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: rc.local executes twice
18th May, 2013, 11:24 AM
Post: #1
mihailescu2m Offline
Registered
Posts: 17
Joined: May 2013
Reputation: 0
Bug rc.local executes twice
This might be a debian issue, but rc.local executes twice when booting.
Find all posts by this user
Quote this message in a reply
18th May, 2013, 02:13 PM
Post: #2
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: rc.local executes twice
But maybe ur something executes by rc.local AND by something else?
Find all posts by this user
Quote this message in a reply
18th May, 2013, 04:05 PM
Post: #3
mihailescu2m Offline
Registered
Posts: 17
Joined: May 2013
Reputation: 0
RE: rc.local executes twice
(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.
Find all posts by this user
Quote this message in a reply
18th May, 2013, 05:02 PM
Post: #4
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: rc.local 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.
Find all posts by this user
Quote this message in a reply
18th May, 2013, 07:51 PM
Post: #5
mihailescu2m Offline
Registered
Posts: 17
Joined: May 2013
Reputation: 0
RE: rc.local executes twice
Not a big issue, just thought I mention it Smile
Find all posts by this user
Quote this message in a reply
18th May, 2013, 10:33 PM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: rc.local executes twice
(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

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
19th May, 2013, 10:06 AM
Post: #7
mihailescu2m Offline
Registered
Posts: 17
Joined: May 2013
Reputation: 0
RE: rc.local executes twice
thanks.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 11th May, 2025, 01:52 AM Powered By MyBB, © 2002-2025 MyBB Group.