[BusyBox] how to automatically start an app at boot time?
Steve Dover
sw0rdf1sh at sbcglobal.net
Mon Jan 19 17:17:13 UTC 2004
Robert P. J. Day wrote:
>
>>In your inittab, have an entry that kicks off rcS :
>>
>>::sysinit:/etc/init.d/rcS
>>
>>Have that script do your setup stuff such as mounting /proc, etc.
>>and have it start any background daemons that you want running.
>
>
> we're already doing that. we have that line in our /etc/inittab file, and
> at the bottom of /etc/init.d/rcS, we found the original lines:
>
> if [ -x /sbin/setup.sh ]
> then
> /sbin/setup.sh
> fi
>
> so we added the invocation of our app to the /sbin/setup.sh file. the
> invocation involves setting some env vars, then running the program. print
> statements show that the boot time execution is, in fact, getting there,
> but the app is not invoked (or, at least, if it's invoked, it stops
> immediately).
>
> if, however, we wait until we get a shell prompt, we can run the app fine
> from the command line. i'm wondering if there's something critical that's
> missing or hasn't been initialized yet earlier in the boot process that
> prevents the app from starting properly.
>
> i'm fairly familiar with the linux boot sequence, but not that familiar
> with how busybox might change some of that, so we're still a little
> puzzled.
>
Are you fully qualifiying the path of the executable?
More information about the busybox
mailing list