From: <cod...@gm...> - 2010-03-18 19:32:24
|
I never thought of using inittab to actually run the app. What I usually do is create a Bash script in /etc/init.d and create a symlink to it from /etc/rc5.d. The script I create isn't actually an init script (doesn't have start, stop, restart sections) so I guess it's not technically an init script, but it's still executed when the system boots to runlevel 5. Move the symlink to /etc/rc3.d if you want it to run in runlevel 3. I'm not sure which of the two is a better option. On Thu, Mar 11, 2010 at 10:49 PM, doubleg <gl...@gm...> wrote: > > > kailoi wrote: > > > > You might want to have a read of this. > > > > > http://it.toolbox.com/blogs/locutus/exploring-the-etc-directory-inittab-16139 > > > > inittab is just a linux control file that defines how various things > > occur during the boot sequence. > > > > I'm not sure what oth means. I've not seen that before. I suspect that > > might be a typo... but 2345 tells inittab to start the program at all > > the standard linux "runlevels" i.e 2, 3, 4, and 5. If you're not that > > familiar with linux this is going to be a little tricky for you. ;) > > > > You can start a program at boot about a million different ways. Try > > googling for "linux start program at boot" and you'll find a million > > different suggestions. Things like putting a script in /etc/init.d > > and calling it from the various run level dirs is another option. > > > > Chris > > > > Thank you Chris for the additional info! I think I found a million > different ways to do this on Google, and that was part of my problem. With > all the different "flavors" of Linux, I was having difficulty finding a > method that matched up with Angstrom's file structure. This inittab method > sure looks like a simple way to go. Again thank you for the reply. > -- > View this message in context: > http://old.nabble.com/Application-auto-run-when-angstrom-boots-up-tp27321883p27872811.html > Sent from the Gumstix mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |