[prev in list] [next in list] [prev in thread] [next in thread] 

List:       djbdns
Subject:    Re: dnscache restarting every 10 mins, was RE: Can't increase dns
From:       prj () po ! cwru ! edu (Paul Jarc)
Date:       2002-11-14 18:47:48
[Download message RAW]

"Reckhard, Tobias" <tobias.reckhard@secunet.com> wrote:
> So what happens when svscanboot does in fact happen to die one rainy day?
> Will init notice that?

Yes.  svscanboot has been exiting, and init has been noticing (and
restarting it) all along.

> And allow me to ask again, rephrasing: how, i.e. in which way do the
> redirections affect init and svscanboot?

On Solaris, commands run from inittab have descriptor 0 open, but 1
and 2 are closed.  So when /bin/sh is started to run svscanboot, the
script itself is on descriptor 1.  But then the script says:
exec >/dev/null
Solaris /bin/sh is buggy; it ought to move the script to another
descriptor before doing this redirection, but it doesn't.  So it can't
read the rest of the script, except for what was already read into the
input buffer.  I'm not sure what happens after that, but the end
result is that /bin/sh exits, so init restarts it.


paul
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic