--- In "wildpossumboy" <>
wrote:
>
> Pleased your found the problem. May I make a suggestion though.
Rather
> than having a loop why not simply use "sleep(2)" to give your system
> a two seconds to do other things like housework rather than tying it
> up in a unproductive resource user.
>
> Cheers. Grahame
>
>
> --- In "jklich" <jklich@> wrote:
> >
> > HA! It turned out that my C program exits if can't it connect to
my
> > database after one try! This is typical if the mysql deamon has
not
> > fully started. I tried starting my "pollster" daemon right after
the
> > mysql daemon -- to resolve this, I placed a loop in my C program
that
> > delays and retries to connect to the mysql database until it
succeeds
> > within a certain number of tries.
> >
> > BTW, syslog is disabled by default on the TS-7800 in order to
reduce
> > wear on the flash memory. I didn't know that. So for everyone
who
> > wants to collect data in the syslog, copy syslog.conf-debian to
> > syslog.conf in the /etc directory. Just make sure you keep a
copy of
> > the old syslog.conf just in case you want to disable syslog again.
> >
No, not just in case. You WILL want to disactivate logging a.s.a.p.
You only get one set of Flash memory and it's soldered into the
board. If you burn it out you buy a new board.
------------------------------------
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/
|