osrf_control router-de/re-register and reload commands user/berick/osrf-control-router-and-reload-sigs
authorBill Erickson <berick@esilibrary.com>
Tue, 7 Jan 2014 19:06:06 +0000 (14:06 -0500)
committerBill Erickson <berick@esilibrary.com>
Tue, 7 Jan 2014 19:06:06 +0000 (14:06 -0500)
commit441a4ccc861be2aeac6d031c875bb10fa5039514
tree2dca464209608a92946d98f00364a84e923f6725
parentb0a41d3973c944259c193fb4da1dce7f0c690f70
osrf_control router-de/re-register and reload commands

Added support for the following new command line options:

--router-de-register
--router-de-register-all
    Sends a SIGUSR1 signal to the selected service(s), which causes each
    service's listener process to send an "unregister" command to all
    registered routers.  The --all variant sends the signal to all
    running listeners.  The non-(--all) variant requires a --service.

--router-re-register
--router-re-register-all
    Sends a SIGUSR2 signal to the selected service(s), which causes each
    service's listener process to send a "register" command to all
    configured routers routers.  The --all variant sends the signal to
    all running listeners.  The non-(--all) variant requires a --service.

--reload
--reload-all
    Sends a SIGHUP signal to the selected service(s).  SIGHUP causes
    each Listener process to reload its opensrf_core.xml config file
    and gracefully re-launch drone processes.  The -all variant sends
    the signal to all services.  The non-(-all) variant requires a
    --service.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
bin/opensrf-perl.pl.in