Need process to run in parent and data be available to all child processes regardless of MPM?

This is a discussion on Need process to run in parent and data be available to all child processes regardless of MPM? within the Linux Web Servers forums, part of the Web Server and Related Forums category; I am trying to add ZeroConf ( Apple Bonjour / formerly Apple Rendezvous ) discovery of services to Apache 2.x using the ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-22-2006
fuzzylollipop
 
Posts: n/a
Default Need process to run in parent and data be available to all child processes regardless of MPM?

I am trying to add ZeroConf ( Apple Bonjour / formerly Apple Rendezvous
) discovery of services to Apache 2.x using the Apple mDNSResponder
code.

I would like to have a long running Browse process that listens for
changes to be in the main apache parent process, and make the data it
collects available to all the child processes so they can connect to
the discovered services during the request processing phase.

My first instinct is to add the long running ( life of the server )
browse code to the server/main.c and store the results in the
globalpool, the browse needs to be tied into the Apache 2 event loop to
that it can call on a file descriptor periodically to process the
incoming data.

But I don't understand how the children can access that data? I need
this to work in the prefork and worker MPM both. And hacking those
modules is not a concern either but I would assume I could write a
module that could access the global pool from the parent, but after
much digging I can't seem to find where that is made available. I am
not interested in any solutions that involve BDB, writing to flat files
and the like. I really need to be able to do all this in memory and in
process if at all possible.

Thanks for any pointers in the right direction.

  #2 (permalink)  
Old 01-22-2006
Nick Kew
 
Posts: n/a
Default Re: Need process to run in parent and data be available to all childprocesses regardless of MPM?

fuzzylollipop wrote:
> I am trying to add ZeroConf ( Apple Bonjour / formerly Apple Rendezvous
> ) discovery of services to Apache 2.x using the Apple mDNSResponder
> code.


I suggest you start by telling us what you're trying to do that
isn't currently supported by mod_zeroconf.

--
Nick Kew
  #3 (permalink)  
Old 01-23-2006
fuzzylollipop
 
Posts: n/a
Default Re: Need process to run in parent and data be available to all child processes regardless of MPM?

I did tell what I need to do, I need to do long running browses and I
need to talk to the the apple code mDNSResponder client.
In case you don't know what mod_zeroconf does, mod_zeroconf is only
for registering.

  #4 (permalink)  
Old 01-23-2006
fuzzylollipop
 
Posts: n/a
Default Re: Need process to run in parent and data be available to all child processes regardless of MPM?

but the crux of the matter is I need the code that talks to the apple
mDNSResponder in the parent ( ONCE ) and the children processes modules
to be able to access that shared data, and I have had one heck of a
time finding out if this is even possible with Apache 2, and if so how!

  #5 (permalink)  
Old 01-24-2006
Nick Kew
 
Posts: n/a
Default Re: Need process to run in parent and data be available to all childprocesses regardless of MPM?

fuzzylollipop wrote:
> but the crux of the matter is I need the code that talks to the apple
> mDNSResponder in the parent ( ONCE ) and the children processes modules
> to be able to access that shared data, and I have had one heck of a
> time finding out if this is even possible with Apache 2, and if so how!
>


If that's once at server startup it's easy - just use the standard
configuration mechanisms. If it's later, you'll have to use shared
memory (apr_shm) or similar to share it.

--
Nick Kew
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:37 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0