The system v init process is described here:
http://www.freeos.com/articles/3243/
As mentioned by another user, the lcdmsg program did exactly what it was
supposed to do. It outputted start and then exited. However, if lcdmsg
would have been written differently you might have had a problem. The
init procress could have hung here and you would have had a hard time
connecting to the board using telnet because telnetd was supposed to be
started after your lcdmsg program. The long explanation is kind of off
topic so i send it to you off list.
//Per Öberg
Kyaw Kyaw wrote:
> Hi Alvaro,
> Could you please explain more specifically or point the
> web relating what you mean because I didn't realize cause of my poor
> knowledge in Linux.Thanks!
>
> Best Regards,
> Kyaw Kyaw( Naing).
>
> ----- Original Message ----
> From: Alvaro Aguirre <>
> To:
> Sent: Wednesday, 14 March 2007 2:01:21PM
> Subject: Re: [ts-7000] Re: Auto-run files onTS-7200
>
> Any program set on the init scripts must be non-blocking, if not it
> freeze until the program exit. To get it non-blocking you can fork it
> and get a new id for the child and exit the parent, launch your program
> as a daemon or simply run a script (from the init script) that launch
> your program and use <&> (i didn't really know why it works, but it works).
>
> Good Luck,
> Alvaro
>
> On 13 Mar 2007 22:48:41 -0700, *Kyaw Kyaw* <naingscorpio@ yahoo.com. sg
> <>> wrote:
>
> I want to use LCD display and 4x4 keypad (come with board) to make
> some functions (such as A/D conversion, Digital I/O) without using
> another computer's help. To do so, I need to make sure that the
> board login and run program automatically when I feed 5V to the board.
> I think now you know what I wanna to do clearly. let
> me go to my board case. I tried to make some change in the
> "/etc/init.d" and "/etc/rc.d/rc3. d" by using the following command.
> (My TS-7200' kernel is TS-Kernel and default run-level is 3).
>
> 1. Firstly I compiled the lcdmesg (LCD Display) in my host computer
> (cannot compile in the board bez of no gcc compiler is installed by
> default) and ftp to the board and put inside "/etc/init.d" folder.
> After that change to the executable mode to lcdmesg.
> 2. Then " chmod a+rx lcdmesg" .
> 3. Go to /etc/rc.d/rc3. d and type " ln -s /etc/init.d/ lcdmesg
> S21lcdmesg".
> ( In that case I don't know how to make the S level for my display,
> so I set to 21). The following is the links included in rc3.d file
> for remarks.
> {S10Network S11portmap S20inetd S30telnetd S40apache S90ts7kvfb}
>
> Then, I reboot my board. But I see only the word
> "start" and cannot use the LCD display ( if i go to the /etc/init.d
> and separately run lcdmesg, it work. But i doesn't work
> automatically) . Do I need to set dedicated level in rc3.d file? Do
> you have any idea to develop my idea?
>
> Cheers!
> Naing.
>
> ------------------------------------------------------------------------
> <http://answers.yahoo.com.sg/>
> *Real people. Real questions. Real answers. Share what you know
> <http://answers.yahoo.com.sg/>* .
>
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Movies
> <http://sg.rd.yahoo.com/mail/sg/footer/def/*http://sg.movies.yahoo.com>
> - Search movie info and celeb profiles and photos.
--
Per Öberg, Ph.D. Student
Address: Division of Vehicular Systems
Department of Electrical Engineering
Linköpings universitet
581 83 Linköping, SWEDEN
Phone: +46 (0)13-28 23 69
e-mail:
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|