LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to commmunicate the configuration changes to running process (https://www.linuxquestions.org/questions/programming-9/how-to-commmunicate-the-configuration-changes-to-running-process-897581/)

Santoshkb 08-16-2011 06:11 AM

how to commmunicate the configuration changes to running process
 
Hi,

I'm trying to intimate all the application(multithreaded)process, when the configuration change happens,

Think,
1. possible is to send signal and handle it in every process,
2. send ipc message to all process,


Please do know, what is the standard way to update process if the configuration change happes


Scenario is that all the processe has its own datastructures which is global,
need to update the same when config file change.

dwhitney67 08-16-2011 07:18 AM

Send a signal; many daemon processes respond to the SIGHUP signal when they are required to be restarted (typically due to a configuration change).


All times are GMT -5. The time now is 08:51 PM.