:: Re: [Dng] Readiness notification
Top Page
Delete this message
Reply to this message
Author: marcxdv
Date:  
To: dng
Old-Topics: [Dng] One issue with ongoing depoetterization
Subject: Re: [Dng] Readiness notification
> For months, literally, the supervision list
> has been wringing its hands over the very real problem that, for process
> dependency purposes, one must know that process X is not only running,
> but ready to handle its business. Knowing process X is running isn't
> sufficent, because some processes take a long time between running
> and being ready for business.


At the risk of sounding like a broken record, this problem has been
known for decades, and has been solved for decades (eg, see the
sysklogd sources).

The trick is for the daemon process to only background when
it is ready to service requests (ie its parent process exits
when the child is ready).

And I am pretty sure I did (apologies for the repeated spam)
mention my writeup at welz.org.za/notes/on-starting-daemons.html
on this very list. It even contains a bit of sample code to
reduce things to a single function call, and later a close() to stderr

Actually, looking at the devuan archives, I actually mentioned it in
a reply to you - not sure if this is sad or funny.

regards

marc