[OpenSRF-GIT] OpenSRF branch master updated. d90a415f0c98a62560d9f824da4b18b6ee9eba84
Evergreen Git
git at git.evergreen-ils.org
Fri Jan 31 16:26:25 EST 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSRF".
The branch, master has been updated
via d90a415f0c98a62560d9f824da4b18b6ee9eba84 (commit)
via 0c0b02e0e8252d5a3e63dea03f8b8d8519526d5a (commit)
via 5b3f8046bf05191424425cbe6bad5342ccb9ebbf (commit)
from b59aee460f2b84f94ecabb758051cf00209574e6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d90a415f0c98a62560d9f824da4b18b6ee9eba84
Author: Galen Charlton <gmc at esilibrary.com>
Date: Fri Jan 31 16:25:16 2014 -0500
x
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
diff --git a/bin/opensrf-perl.pl.in b/bin/opensrf-perl.pl.in
index 522ad86..d5961da 100755
--- a/bin/opensrf-perl.pl.in
+++ b/bin/opensrf-perl.pl.in
@@ -732,8 +732,8 @@ sub do_help {
--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.
+ configured routers. The --all variant sends the signal to all
+ running listeners. The non-(--all) variant requires a --service.
--reload
--reload-all
commit 0c0b02e0e8252d5a3e63dea03f8b8d8519526d5a
Author: Galen Charlton <gmc at esilibrary.com>
Date: Fri Jan 31 16:20:26 2014 -0500
typo fix
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
diff --git a/bin/opensrf-perl.pl.in b/bin/opensrf-perl.pl.in
index 7566441..522ad86 100755
--- a/bin/opensrf-perl.pl.in
+++ b/bin/opensrf-perl.pl.in
@@ -738,7 +738,7 @@ sub do_help {
--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
+ 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.
commit 5b3f8046bf05191424425cbe6bad5342ccb9ebbf
Author: Bill Erickson <berick at esilibrary.com>
Date: Tue Jan 7 14:06:06 2014 -0500
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 at esilibrary.com>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
diff --git a/bin/opensrf-perl.pl.in b/bin/opensrf-perl.pl.in
index 6787d42..7566441 100755
--- a/bin/opensrf-perl.pl.in
+++ b/bin/opensrf-perl.pl.in
@@ -53,6 +53,12 @@ my $opt_start_services = 0;
my $opt_stop_services = 0;
my $opt_restart_services = 0;
my $opt_force_clean_process = 0;
+my $opt_router_de_register = 0;
+my $opt_router_de_register_all = 0;
+my $opt_router_re_register = 0;
+my $opt_router_re_register_all = 0;
+my $opt_reload = 0;
+my $opt_reload_all = 0;
my $opt_quiet = 0;
my $opt_diagnostic = 0;
my $sclient;
@@ -89,6 +95,12 @@ GetOptions(
'start-services' => \$opt_start_services,
'stop-services' => \$opt_stop_services,
'restart-services' => \$opt_restart_services,
+ 'router-de-register' => \$opt_router_de_register,
+ 'router-de-register-all' => \$opt_router_de_register_all,
+ 'router-re-register' => \$opt_router_re_register,
+ 'router-re-register-all' => \$opt_router_re_register_all,
+ 'reload' => \$opt_reload,
+ 'reload-all' => \$opt_reload_all,
'diagnostic' => \$opt_diagnostic
);
@@ -706,7 +718,30 @@ sub do_help {
--signal-timeout
Seconds to wait for a process to die after sending a shutdown signal.
All signals except HUP, USR1, and USR2 are assumed to be shutdown signals.
-
+
+ ==== special signals ====
+
+ --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.
HELP
exit;
}
@@ -743,8 +778,16 @@ do_stop_all('KILL') if $opt_shutdown_immediate_all;
do_kill_with_fire() if $opt_kill_with_fire;
# signaling
-do_signal($opt_service, $opt_signal) if $opt_signal;
-do_signal_all($opt_signal) if $opt_signal_all;
+$opt_signal = 'USR1' if $opt_router_de_register or $opt_router_de_register_all;
+$opt_signal = 'USR2' if $opt_router_re_register or $opt_router_re_register_all;
+$opt_signal = 'HUP' if $opt_reload or $opt_reload_all;
+
+do_signal($opt_service, $opt_signal) if $opt_signal and $opt_service;
+do_signal_all($opt_signal) if
+ $opt_signal_all or
+ $opt_reload_all or
+ $opt_router_de_register_all or
+ $opt_router_re_register_all;
# misc
do_diagnostic() if $opt_diagnostic;
-----------------------------------------------------------------------
Summary of changes:
bin/opensrf-perl.pl.in | 49 +++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 46 insertions(+), 3 deletions(-)
hooks/post-receive
--
OpenSRF
More information about the opensrf-commits
mailing list