<tt><font size=2>> regarding the flat ndo2db init script with it's
tough "killall<br>
> ndo2db..." I reviewed the signal processing in ndo2db.<br>
> <br>
> Intro:<br>
> As we know ndo2db forks first to become a daemon, no problem up to
here,<br>
> and forks again for each client connection.<br>
> Each client connection has the daemon as session leader but if we
send<br>
> this leader a SIGTERM the parent process is exiting, deleting the<br>
> socket, cleaning up and 'over and out'.<br>
> Bad thing: The forked connection child is still alive, hanging around
in<br>
> read() from the (non existing) socket descriptor.<br>
</font></tt>
<br><tt><font size=2>In my opinion ndo is totally missing a proper handling
of itself and</font></tt>
<br><tt><font size=2>its children. What you describe is just a designflaw
in my eyes.</font></tt>
<br>
<br><tt><font size=2>What ndo2db should have:</font></tt>
<br>
<br><tt><font size=2>- a pidfile handling via /var/run</font></tt>
<br><tt><font size=2>- a subsys handling via /var/lock/subsys</font></tt>
<br>
<br><tt><font size=2>So it makes it easier to identify ndo2db processes
and handle them</font></tt>
<br><tt><font size=2>properly.</font></tt>
<br>
<br><tt><font size=2>If ndo is getting pushed again now, I'm more then
happy to contribute</font></tt>
<br><tt><font size=2>my init script, which is much more sophisticated then
the usual</font></tt>
<br><tt><font size=2>one. Put it to good use :) I'll attach it as file,
so the indenting</font></tt>
<br><tt><font size=2>doesn't get broken.</font></tt>
<br>
<br><tt><font size=2>But - I wrote it for RedHat Enterprise Linux 5 and
I am not sure</font></tt>
<br><tt><font size=2>how well it works on other distributions. I always
wanted to take</font></tt>
<br><tt><font size=2>a look into that, but I'm currently under too much
pressure at work</font></tt>
<br><tt><font size=2>here.</font></tt>
<br>
<br><tt><font size=2>Regards</font></tt>
<br><tt><font size=2>        Sascha</font></tt>
<br>
<br>
<br>
<br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">GFKL Financial Services AG</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Tom Haverkamp</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522</span>