I have committed a bunch of changes in the main branch (18776-18783) to 
implement a stdinpipe between the supervisor and the child processes, and send 
resourceChanged messages across this pipe when config files are replicated.  
SipXecsService classes in both C++ and Java implement StdinListener threads to 
monitor for these messages, and provide a resourceChanged method for each 
service to override as desired.  I have made the SipXecsService class the base 
class of our services in both C++ and Java (except config itself, ACD, 
sipXopenfire, and Freeswitch).  All SipXecsService-based services (again, all 
but config, ACD, sipXopenfire, and Freeswitch) now reload the config file when 
it is replicated and adjust the loglevel appropriately.  In addition, a 
shutdown method is invoked when supervisor shuts down a process (your service 
could use this instead of or together with the kill signal stuff that we now 
use).

A couple of -config files changed names, so you may have to Send Profiles when 
you first run after this change.

You may notice something I missed or broke - let me know.

You may want to make other changes more dynamic - go for it.

I will be raising an issue for sipXconfig to stop flagging services for restart 
when the log level is changed.

Carolyn

_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to