--- In "LaksCEO" <> wrote:
>
> Hi Martin,
>
>
>
> >mcp:3:respawn:/root/starter > /root/starter.log 2>&1
> >wdt:3:once:/root/watchdog > /tmp/watchdog.log 2>&1
> what are these files?
> What should i write in these two files?
> -laks
>
/root/starter and /root/watchdog are two programs that I wrote that perform the
processing I need in my application.
They write messages to standard output and standard error. When run from
/etc/inittab,
if you don't capture the output, it will be lost for ever. So I redirect the
output into log
files with meaningful names.
You don't write anything in those files. If your program is called myprogram
and is /bin,
the line would be like this:
laks:3:/bin/myprogram > /tmp/myprogram.log 2>&1
The first field is just a unique identifier. The second field is the run level.
Man inittab will
help.
Martin
------------------------------------
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/
|