]> git.evergreen-ils.org Git - working/OpenSRF.git/commit
C SIGHUP handling and config reloading
authorBill Erickson <berick@esilibrary.com>
Tue, 27 Aug 2013 15:47:52 +0000 (11:47 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 27 Aug 2013 16:34:02 +0000 (12:34 -0400)
commitebffe51af91cdea28076320a3704980b95f19d88
tree533961cdcc12319e644f288e768e4682058267cc
parenta091ef05fda8c333b268e2d71937069fdd3b519c
C SIGHUP handling and config reloading

Sending the HUP signal to a C Listener process now results in the
following:

 * Reload the opensrf_core config
 * update the log file level
 * kill idle child processes
 * child processes that are active when the signal is received are
   tracked and killed once they become idle.
 * New children are spawned per the min child settings

The primary use case for these changes is temporarily changing the log
level for a given service for debug purposes.  It may also
be used, for example, to gracefully recover excess RAM consumed by a
child process.

opensrf.xml (opensrf.settings config) is not reloaded, so min/max child
settings will not be affected.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
include/opensrf/osrfConfig.h
src/libopensrf/osrfConfig.c
src/libopensrf/osrf_prefork.c