How to run an application after the boot ?
Hi, i know this could seems like a "simple" question but after a lot fo try i can't seems to make it works, i am stuck on this. I am working on a sbc6000x board, linux 2.6.24, an embedded system.
I am working on a pretty nice project which when called like this run perfectly : Code:
cd /bin After searching a little about the startup i learned about rc.local and created it in /etc/init.d, rc.local look like this : Code:
#!bin/sh Does anyone has an idea on why this don't work or on how i could do this ? |
The first question is why doesn't "/bin/apps" work? What happens? Is there an error?
What is this "apps" program? Does it run forever? Does it return? Does the exit status mean anything or do you care? When you put it in rc.local, how do you know it's never called? Does your rc.local file have execute permissions? Do you see any errors/warnings in the system logs? |
Quote:
This apps read an .ini file on a sd card, configure the board with the data from the sd card and then call another program before closing (which works with no issue with ./apps). I chmod 777 rc.local in order to give it all rights (this is only for a test, later i will restrict it maybe). Nothing happen, no error message. Maybe rc.local is called but it it doing nothing. |
Try running 'ldd /bin/apps'. See if it requires libstcd++.so.6. If so whether it is available.
Else would have to install C++ runtime package available with gcc/g++/libstdc++ pacakage. |
All times are GMT -5. The time now is 06:05 AM. |