m g wrote:
>On Wed, Aug 17, 2005 at 02:26:57PM -0000, jenlhunt2003 wrote:
>
>
>>Actually, putting
>>
>>tst1:12345:wait:/mydir/myprogram
>>
>>after the Run Level r6:6:wait:/etc/rc.d/rcS 6 line in etc/inittab
>>seems to work quite well so far, including network connectivity.
>>
>>So, since this approach isn't proper, how do you recommend handling
>>unattended bootup the "right" way? Seriously, not being able to boot
>>and execute a program without login would make the TS-7200 unusable
>>for most embedded applications. So how about it folks at TS, what's
>>the proper proceedure here?
>>
>>
>
>Unless I'm completely misunderstand what you want to accomplish there
>should *never* be any reason to have to login to run a program. Most
>desktop Linuxes have a "local" init script in init.d. The intent is to
>start in miscellaneous programs. It doesn't look like the TS-72XX has
>one but it's simple enough to create one.
>
>1. Create a shell script in /etc/init.d called local.start
>
>2. Put whatever you need in here to start your program.
>
>3. (Optional) Create a shell script in /etc/init.d called local.stop if
>for some reason you need to do an orderly shutdown of your program. Put
>those commands here.
>
>4. Create a symbolic link with the following command in /etc/rc.d/rc3.d
>
> $ ln -s ../../init.d/local.start S99local
>
>This will execute your script in local.start. The '99' is the order
>in this case '99' should be the highest number so it will run last.
>
>5. (Optional) Create a complimentary symbolic link in /etc/rc.d/rc0.d and
>/etc/rc.d/rc6.d for halt and reboot, respectively.
>
> $ ln -s ../../init.d/local.stop S01local
>
>
>Let me know if you have any more questions. Good Luck!
>
>Mike
>
>
>
>this will give you the general idea
>
>
http://librenix.com/?inode=7136
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12h5echm3/M=362131.6882499.7825260.1510227/D=groups/S=1705005378:TM/Y=YAHOO/EXP=1124334546/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|