7 commit d6688eade4a5947efd5280768fc549942a22e451
8 Author: Galen Charlton <gmc@esilibrary.com>
9 Date: Thu Feb 27 16:52:15 2014 -0800
11 bump up version numbers of OpenSRF 2.3.0-beta
13 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
15 2 2 src/perl/lib/OpenSRF.pm
16 1 1 src/python/setup.py
19 commit e4453fbb43032f1154e1aa6dfdaf6183682026d9
20 Author: Galen Charlton <gmc@esilibrary.com>
21 Date: Thu Feb 27 16:46:46 2014 -0800
23 release notes for OpenSRF 2.3.0 beta
25 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
27 90 0 doc/RELEASE_NOTES.txt
28 create mode 100644 doc/RELEASE_NOTES.txt
30 commit 3692bb33cccdf3106df96883033b20ab9170c5a5
31 Author: Bill Erickson <berick@esilibrary.com>
32 Date: Mon Feb 24 09:09:46 2014 -0500
34 LP#1284137: Avoid WARN logging on router shutdown
36 Log received signals as DEBUG (misc signal) or INFO (during shutdown)
37 in the router, since these are not error conditions, but normal
40 A warning may ultimately be logged at a higher level when the signal is
43 Signed-off-by: Bill Erickson <berick@esilibrary.com>
44 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
46 1 1 src/router/osrf_router.c
47 2 2 src/router/osrf_router_main.c
49 commit 02a93da43f4fcebf7b00e5893ecd3e855dc2dbba
50 Author: Galen Charlton <gmc@esilibrary.com>
51 Date: Fri Mar 15 10:22:17 2013 -0400
53 LP#1155446: add Debian/Ubuntu deps required for Python tests to pass
55 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
56 Signed-off-by: Ben Shum <bshum@biblio.org>
58 5 0 src/extras/Makefile.install
60 commit 2fae35660282044e8462cde5b8152ff3d24f77e3
61 Author: Bill Erickson <berick@esilibrary.com>
62 Date: Fri Oct 12 16:57:15 2012 -0400
64 LP#1066131: srfsh.py should not require opensrf.settings
66 Update srfsh.py to connect to the opensrf network without automatically
67 reading the opensrf.setting server data. This allows srfsh.py to run a
70 Signed-off-by: Bill Erickson <berick@esilibrary.com>
71 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
73 1 1 src/python/srfsh.py
75 commit 989ac2737759a0fc6a80ec08b1a68b35eab2ff60
76 Author: Galen Charlton <gmc@esilibrary.com>
77 Date: Thu Apr 18 16:14:00 2013 -0400
79 LP#1170484: log failure to load library for C app as an error
81 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
82 Signed-off-by: Ben Shum <bshum@biblio.org>
84 1 1 src/libopensrf/osrf_application.c
86 commit 9a01063b3c78a33707a414a36d397e061ca62b1d
87 Merge: d90a415 2cc896b
88 Author: Galen Charlton <gmc@esilibrary.com>
89 Date: Fri Jan 31 16:40:58 2014 -0500
91 Merge branch 'rel_2_3'
93 commit 2cc896b7d103fbade96054881c6c57046eef01e5
94 Author: Galen Charlton <gmc@esilibrary.com>
95 Date: Fri Jan 31 16:20:26 2014 -0500
97 fix typo and remove repeated word
99 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
101 3 3 bin/opensrf-perl.pl.in
103 commit a98d4b5195a0f5e77d14d4d247dde47f71b573c2
104 Author: Bill Erickson <berick@esilibrary.com>
105 Date: Tue Jan 7 14:06:06 2014 -0500
107 osrf_control router-de/re-register and reload commands
109 Added support for the following new command line options:
112 --router-de-register-all
113 Sends a SIGUSR1 signal to the selected service(s), which causes each
114 service's listener process to send an "unregister" command to all
115 registered routers. The --all variant sends the signal to all
116 running listeners. The non-(--all) variant requires a --service.
119 --router-re-register-all
120 Sends a SIGUSR2 signal to the selected service(s), which causes each
121 service's listener process to send a "register" command to all
122 configured routers routers. The --all variant sends the signal to
123 all running listeners. The non-(--all) variant requires a --service.
127 Sends a SIGHUP signal to the selected service(s). SIGHUP causes
128 each Listener process to reload its opensrf_core.xml config file
129 and gracefully re-launch drone processes. The -all variant sends
130 the signal to all services. The non-(-all) variant requires a
133 Signed-off-by: Bill Erickson <berick@esilibrary.com>
134 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
136 46 3 bin/opensrf-perl.pl.in
138 commit d90a415f0c98a62560d9f824da4b18b6ee9eba84
139 Author: Galen Charlton <gmc@esilibrary.com>
140 Date: Fri Jan 31 16:25:16 2014 -0500
144 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
146 2 2 bin/opensrf-perl.pl.in
148 commit 0c0b02e0e8252d5a3e63dea03f8b8d8519526d5a
149 Author: Galen Charlton <gmc@esilibrary.com>
150 Date: Fri Jan 31 16:20:26 2014 -0500
154 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
156 1 1 bin/opensrf-perl.pl.in
158 commit 5b3f8046bf05191424425cbe6bad5342ccb9ebbf
159 Author: Bill Erickson <berick@esilibrary.com>
160 Date: Tue Jan 7 14:06:06 2014 -0500
162 osrf_control router-de/re-register and reload commands
164 Added support for the following new command line options:
167 --router-de-register-all
168 Sends a SIGUSR1 signal to the selected service(s), which causes each
169 service's listener process to send an "unregister" command to all
170 registered routers. The --all variant sends the signal to all
171 running listeners. The non-(--all) variant requires a --service.
174 --router-re-register-all
175 Sends a SIGUSR2 signal to the selected service(s), which causes each
176 service's listener process to send a "register" command to all
177 configured routers routers. The --all variant sends the signal to
178 all running listeners. The non-(--all) variant requires a --service.
182 Sends a SIGHUP signal to the selected service(s). SIGHUP causes
183 each Listener process to reload its opensrf_core.xml config file
184 and gracefully re-launch drone processes. The -all variant sends
185 the signal to all services. The non-(-all) variant requires a
188 Signed-off-by: Bill Erickson <berick@esilibrary.com>
189 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
191 46 3 bin/opensrf-perl.pl.in
193 commit 14287dc536142b14bc67806b1417b9a4850fa8cc
194 Author: Bill Erickson <berick@esilibrary.com>
195 Date: Thu Nov 21 16:37:38 2013 -0500
197 recover osrf_control router start
199 With the addition of service verification, which ensures that a service
200 is meant to run on the requested host, we lost the ability to start the
201 router by itself, since the router is never explicitly configured to run
202 anywhere. This patch assumes the router is always a valid service.
204 Signed-off-by: Bill Erickson <berick@esilibrary.com>
205 Signed-off-by: Dan Wells <dbw2@calvin.edu>
207 1 0 bin/opensrf-perl.pl.in
209 commit b59aee460f2b84f94ecabb758051cf00209574e6
210 Author: Bill Erickson <berick@esilibrary.com>
211 Date: Thu Nov 21 16:37:38 2013 -0500
213 recover osrf_control router start
215 With the addition of service verification, which ensures that a service
216 is meant to run on the requested host, we lost the ability to start the
217 router by itself, since the router is never explicitly configured to run
218 anywhere. This patch assumes the router is always a valid service.
220 Signed-off-by: Bill Erickson <berick@esilibrary.com>
221 Signed-off-by: Dan Wells <dbw2@calvin.edu>
223 1 0 bin/opensrf-perl.pl.in
225 commit c5ca743810acded29b0dcf9866ea513d5fcffdb9
226 Author: Bill Erickson <berick@esilibrary.com>
227 Date: Thu Dec 5 12:27:44 2013 -0500
229 OpenSRF client disconnect robustification (Perl)
231 * Improve detection of client connection state with jabber server
233 Be more aggressive in testing and responding to failed connectivity.
234 It can happen in various ways, depending on what's happening to the
235 jabber server (death, delay, graceful shutdown). With these changes
236 we attempt to cover all the bases and detect as early as possible that
237 a connection has died, specifically when trying to create a new
238 connection after one has failed.
240 * Do a better job of cleaning up dead connections
242 Transport::PeerHandle now has a reset() action which disconnects (when
243 possible) and clears the global connection reference.
245 Signed-off-by: Bill Erickson <berick@esilibrary.com>
246 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
248 8 2 src/perl/lib/OpenSRF/System.pm
249 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm
250 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/PeerConnection.pm
251 1 0 src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
253 commit b0a41d3973c944259c193fb4da1dce7f0c690f70
254 Author: Bill Erickson <berick@esilibrary.com>
255 Date: Thu Dec 5 12:27:44 2013 -0500
257 OpenSRF client disconnect robustification (Perl)
259 * Improve detection of client connection state with jabber server
261 Be more aggressive in testing and responding to failed connectivity.
262 It can happen in various ways, depending on what's happening to the
263 jabber server (death, delay, graceful shutdown). With these changes
264 we attempt to cover all the bases and detect as early as possible that
265 a connection has died, specifically when trying to create a new
266 connection after one has failed.
268 * Do a better job of cleaning up dead connections
270 Transport::PeerHandle now has a reset() action which disconnects (when
271 possible) and clears the global connection reference.
273 Signed-off-by: Bill Erickson <berick@esilibrary.com>
274 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
276 8 2 src/perl/lib/OpenSRF/System.pm
277 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm
278 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/PeerConnection.pm
279 1 0 src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
281 commit af8cab4b4b77f668e3c5ac85d191acf94537ef32
282 Author: Mike Rylander <mrylander@gmail.com>
283 Date: Thu May 16 10:17:15 2013 -0400
285 Protect subrequests from post-complete messages
287 Subrequests (AKA method_lookup()-based API calls) sometimes append
288 final-lvalue responses to the response list even after respond_complete()
289 has been called from within the implementation method. This commit
290 discards all post-respond_complete values, protecting against extra,
291 spurious values being returned to the ultimate client.
293 Signed-off-by: Mike Rylander <mrylander@gmail.com>
294 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
296 16 2 src/perl/lib/OpenSRF/AppSession.pm
298 commit 8d9b6b60cec68910ab48e4477e5de2d451013dc5
299 Author: Galen Charlton <gmc@esilibrary.com>
300 Date: Mon Dec 16 08:08:51 2013 -0800
302 LP#1180849: test case - ignoring subrequest responses after respond_complete()
304 This patch adds a regression test for verifying that subrequests
305 ignore additional responses after respond_complete() is called.
307 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
309 9 1 src/perl/t/02-AppSession.t
311 commit a0d5b0536231cc06552fb9d7533a713c314ef9d3
312 Author: Mike Rylander <mrylander@gmail.com>
313 Date: Thu May 16 10:17:15 2013 -0400
315 Protect subrequests from post-complete messages
317 Subrequests (AKA method_lookup()-based API calls) sometimes append
318 final-lvalue responses to the response list even after respond_complete()
319 has been called from within the implementation method. This commit
320 discards all post-respond_complete values, protecting against extra,
321 spurious values being returned to the ultimate client.
323 Signed-off-by: Mike Rylander <mrylander@gmail.com>
324 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
326 16 2 src/perl/lib/OpenSRF/AppSession.pm
328 commit 59b4dd74e8695bc9bd7ad6c379b0f313db1cbb61
329 Author: Galen Charlton <gmc@esilibrary.com>
330 Date: Mon Dec 16 08:08:51 2013 -0800
332 LP#1180849: test case - ignoring subrequest responses after respond_complete()
334 This patch adds a regression test for verifying that subrequests
335 ignore additional responses after respond_complete() is called.
337 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
339 9 1 src/perl/t/02-AppSession.t
341 commit 4ec8e134da80422f288e3e84024a8aa137b22259
342 Author: Jeff Godin <jgodin@tadl.org>
343 Date: Tue Dec 3 13:52:39 2013 -0500
345 Add some additional boolean-related JSON tests
347 Add some additional boolean-related JSON tests, enable use strict /
348 use warnings for JSON tests.
350 Signed-off-by: Jeff Godin <jgodin@tadl.org>
351 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
353 12 5 src/perl/t/09-Utils-JSON.t
355 commit 9a367d3621706693445b945b283d54281d6dfa0a
356 Author: Mike Rylander <mrylander@gmail.com>
357 Date: Tue Dec 3 09:57:39 2013 -0500
359 LP#1257264: Use the built-in JSON-y test for bools
361 This removes a dependency on internal details of JSON::XS's
362 implementation of Boolean types which changed with the release
365 Signed-off-by: Mike Rylander <mrylander@gmail.com>
366 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
367 Signed-off-by: Jeff Godin <jgodin@tadl.org>
369 3 4 src/perl/lib/OpenSRF/Utils/JSON.pm
371 commit db87a311765e1c9bd538504827349a797a9b1bc4
372 Author: Galen Charlton <gmc@esilibrary.com>
373 Date: Tue Dec 3 09:43:54 2013 -0800
375 LP#1257264: make test cases for JSON::XS Boolean-ness more generic
377 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
378 Signed-off-by: Jeff Godin <jgodin@tadl.org>
380 5 5 src/perl/t/09-Utils-JSON.t
382 commit b93e0ca9c88e76d8a6a3c2451cbb49756c6ecf68
383 Author: Jeff Godin <jgodin@tadl.org>
384 Date: Tue Dec 3 13:52:39 2013 -0500
386 Add some additional boolean-related JSON tests
388 Add some additional boolean-related JSON tests, enable use strict /
389 use warnings for JSON tests.
391 Signed-off-by: Jeff Godin <jgodin@tadl.org>
392 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
394 12 5 src/perl/t/09-Utils-JSON.t
396 commit a5be2f1654ea2211abef57f6065d8f6c5ee7f58a
397 Author: Mike Rylander <mrylander@gmail.com>
398 Date: Tue Dec 3 09:57:39 2013 -0500
400 LP#1257264: Use the built-in JSON-y test for bools
402 This removes a dependency on internal details of JSON::XS's
403 implementation of Boolean types which changed with the release
406 Signed-off-by: Mike Rylander <mrylander@gmail.com>
407 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
408 Signed-off-by: Jeff Godin <jgodin@tadl.org>
410 3 4 src/perl/lib/OpenSRF/Utils/JSON.pm
412 commit ff472c0e3c1dd47b5a584ebaf6a64d0534c5438b
413 Author: Galen Charlton <gmc@esilibrary.com>
414 Date: Tue Dec 3 09:43:54 2013 -0800
416 LP#1257264: make test cases for JSON::XS Boolean-ness more generic
418 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
419 Signed-off-by: Jeff Godin <jgodin@tadl.org>
421 5 5 src/perl/t/09-Utils-JSON.t
423 commit 9028b0238106923a64534b88eb6382bf59783ea5
424 Author: Galen Charlton <gmc@esilibrary.com>
425 Date: Thu Sep 12 12:37:57 2013 -0700
427 LP#1224647: remove two invalid tests
429 The patch for bug 1204123 changes the client_recv()
430 to not set the transport_client error flag, as most
431 of the circumstances where it would have been set were
432 for cases where the call to select() was interrupted
433 by a signal, which is not an error per se.
435 This patch removes two tests that were therefore
436 made invalid, restoring the ability of the test suite
439 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
440 Signed-off-by: Bill Erickson <berick@esilibrary.com>
442 0 4 tests/check_transport_client.c
444 commit e203c6edd4e02437a56d98f24a7b8c52b142faee
445 Author: Bill Erickson <berick@esilibrary.com>
446 Date: Thu Sep 5 10:32:09 2013 -0400
448 osrf_control --start/stop/restart-services
450 Provide commands for controling non-router services. This is useful in
451 a multi-server environment where the router runs on a different server.
453 Signed-off-by: Bill Erickson <berick@esilibrary.com>
454 Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
456 44 7 bin/opensrf-perl.pl.in
458 commit 0ef66eea902b50efa360815114c11d40d14560d2
459 Author: Bill Erickson <berick@esilibrary.com>
460 Date: Tue Sep 3 14:56:27 2013 -0400
462 LP#1204123 repair makefile.am warning
464 Avoid trailing space after backslash
466 Signed-off-by: Bill Erickson <berick@esilibrary.com>
467 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
471 commit ca94866879192a2ea962ce12d15573aa83115cd8
472 Author: Bill Erickson <berick@esilibrary.com>
473 Date: Fri Aug 30 14:17:02 2013 -0400
475 LP#1204123 osrf_control warn and exit on bad host
477 Any time a start action is issued (start, start_all, restart,
478 restart_all), osrf_control will first verify that the selected hostname
479 (or localhost) hosts the requested service(s). If not, the user is
480 warned and the script exits before any action is taken.
482 Note: we do not make a similar verification for stop and signal actions,
483 since those may be reasonably be used even when a service is not
484 configured to run on the selected host.
486 Thanks to Jason Stephenson for the suggestion.
488 Signed-off-by: Bill Erickson <berick@esilibrary.com>
489 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
491 30 7 bin/opensrf-perl.pl.in
493 commit f7c7fd436ffdd85abef2f8c76c8e6f59755777ab
494 Author: Bill Erickson <berick@esilibrary.com>
495 Date: Fri Aug 30 13:09:27 2013 -0400
497 LP#1204123 osrf_control --diagnostic improvements
499 Assessing the state of each PID for each service for error conditions.
503 Signed-off-by: Bill Erickson <berick@esilibrary.com>
504 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
506 28 41 bin/opensrf-perl.pl.in
508 commit e6cdba1fe3b3af91d91b13ea0ad4a4d8ceaa4b21
509 Author: Bill Erickson <berick@esilibrary.com>
510 Date: Fri Aug 30 11:27:49 2013 -0400
512 LP#1204123 osrf_control --diagnostic
514 Command prints information about running services, including
515 descrepencies between running vs configured and PS listing vs PID files.
517 Signed-off-by: Bill Erickson <berick@esilibrary.com>
518 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
520 96 4 bin/opensrf-perl.pl.in
522 commit d1d2894e69ca2741b54b936737ac442b1774cd95
523 Author: Bill Erickson <berick@esilibrary.com>
524 Date: Tue Aug 27 15:56:46 2013 -0400
526 LP1204123 osrf_ctl.sh improvement
528 Removing no-longer-supported --verbose flag from osrf_ctl.sh stub
530 Signed-off-by: Bill Erickson <berick@esilibrary.com>
531 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
533 1 2 bin/osrf_ctl.sh.in
535 commit 9c07e2ad85a3a569914070b59c3b185d1cc0f1cb
536 Author: Bill Erickson <berick@esilibrary.com>
537 Date: Tue Aug 27 15:52:48 2013 -0400
539 LP1204123 osrf_control doc updates
541 Signed-off-by: Bill Erickson <berick@esilibrary.com>
542 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
545 1 1 examples/opensrf.xml.example
547 commit 7fed81ab4a24236ef2db4bd0f1d6bd40c65e0b80
548 Author: Bill Erickson <berick@esilibrary.com>
549 Date: Tue Aug 27 11:47:52 2013 -0400
551 C SIGHUP handling and config reloading
553 Sending the HUP signal to a C Listener process now results in the
556 * Reload the opensrf_core config
557 * update the log file level
558 * kill idle child processes
559 * child processes that are active when the signal is received are
560 tracked and killed once they become idle.
561 * New children are spawned per the min child settings
563 The primary use case for these changes is temporarily changing the log
564 level for a given service for debug purposes. It may also
565 be used, for example, to gracefully recover excess RAM consumed by a
568 opensrf.xml (opensrf.settings config) is not reloaded, so min/max child
569 settings will not be affected.
571 Signed-off-by: Bill Erickson <berick@esilibrary.com>
572 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
574 2 0 include/opensrf/osrfConfig.h
575 6 0 src/libopensrf/osrfConfig.c
576 134 19 src/libopensrf/osrf_prefork.c
578 commit 76ceb9d1e4d662c7fa8c41434df940647bf32fef
579 Author: Bill Erickson <berick@esilibrary.com>
580 Date: Fri Aug 16 10:07:10 2013 -0400
582 LP1204123 more osrf_ctl/control script cleanup
584 Signed-off-by: Bill Erickson <berick@esilibrary.com>
585 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
587 1 1 bin/osrf_ctl.sh.in
589 commit 9f8d384361e88d786d70a350f6f154e93a592d7b
590 Author: Bill Erickson <berick@esilibrary.com>
591 Date: Fri Aug 16 10:04:55 2013 -0400
593 LP1204123 more osrf_ctl/control script cleanup
595 Signed-off-by: Bill Erickson <berick@esilibrary.com>
596 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
598 5 3 bin/opensrf-perl.pl.in
599 1 1 bin/osrf_ctl.sh.in
601 commit d849a24e417898d1a4dc2590af51f95f56b508ff
602 Author: Bill Erickson <berick@esilibrary.com>
603 Date: Mon Aug 12 11:39:28 2013 -0400
605 LP1204123 osrf_control improved sample usage
607 Use a more realistic default usage message. --config and --pid-dir have
608 sane defaults, so people will not normally need to specify those.
610 Signed-off-by: Bill Erickson <berick@esilibrary.com>
611 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
613 1 1 bin/opensrf-perl.pl.in
615 commit 7e274fb696485b43bba31315138fad866221b97b
616 Author: Bill Erickson <berick@esilibrary.com>
617 Date: Mon Aug 12 11:33:11 2013 -0400
619 LP1204123 install opensrf-perl.pl as osrf_control
621 Symlink osrf_control to opensrf-perl.pl to act as the replacement for
622 osrf_ctl.sh. I chose "osrf_control" since it matches more closely to
623 "osrf_config" -- also it's probably less confusing than calling it
624 osrf_ctl, which would likely get confused w/ osrf_ctl.sh
628 Signed-off-by: Bill Erickson <berick@esilibrary.com>
629 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
633 commit 79522df516441ea34fa615bd1e83e8bc4ee93d66
634 Author: Bill Erickson <berick@esilibrary.com>
635 Date: Mon Aug 12 11:31:56 2013 -0400
637 LP1204123 opensrf-perl.pl improve logging
639 Log messages by default. Replace --verbose flag with --quiet flag.
641 Also treat all messages the same, instead of separating them into info
642 and debug. They're all pretty useful.
644 Signed-off-by: Bill Erickson <berick@esilibrary.com>
645 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
647 35 21 bin/opensrf-perl.pl.in
649 commit 5f21d07c7d5c61c3cb6c7ecd891fe79e68a06aae
650 Author: Bill Erickson <berick@esilibrary.com>
651 Date: Fri Aug 9 10:40:29 2013 -0400
653 LP1204123 opensrf-perl.pl expansion continued
655 * improved cleanup of stale pid files during startup
656 * added --force-clean-process option to kill orphan (no pidfile)
657 processes during startup
658 * other minor cleanup
660 Signed-off-by: Bill Erickson <berick@esilibrary.com>
661 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
663 78 38 bin/opensrf-perl.pl.in
664 3 7 bin/osrf_ctl.sh.in
666 commit 69b139d87447e9ddc546b5a772e9fa1725e23e6c
667 Author: Bill Erickson <berick@esilibrary.com>
668 Date: Mon Aug 5 16:58:26 2013 -0400
670 LP1204123 opensrf-perl.pl expansion / replace osrf_ctl
672 opensrf-perl.pl can now stop/start/signal/etc. all opensrf services,
673 regardless of language. It is in effect a replacement for osrf_ctl.sh
674 with considerably broader powers.
676 To ease transition, osrf_ctl.sh has been taught to pass
677 start/stop/restart_all commands through to opensrf-perl.pl.
679 The layout of commands has changed some (e.g. --start-all instead of
680 --action start_all) and a host of new commands have been added.
682 Below are the full set of commands. See --help for full descriptions:
686 --settings-startup-pause
698 --graceful-shutdown-all
702 --immediate-shutdown-all
709 Signed-off-by: Bill Erickson <berick@esilibrary.com>
710 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
712 390 49 bin/opensrf-perl.pl.in
713 10 339 bin/osrf_ctl.sh.in
715 commit ca1a08ff5864a2a4ef8e11070330eb0f5eb3c518
716 Author: Bill Erickson <berick@esilibrary.com>
717 Date: Thu Aug 1 10:39:21 2013 -0400
719 LP1204123 Remove osrf_ctl debug echos
721 Signed-off-by: Bill Erickson <berick@esilibrary.com>
722 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
724 0 4 bin/osrf_ctl.sh.in
726 commit 06368dfa151f04c6cbb0b843b7e9dc795a8193c5
727 Author: Bill Erickson <berick@esilibrary.com>
728 Date: Wed Jul 31 17:43:12 2013 -0400
730 LP1204123 Improved per-service control (C/Perl)
732 C opensrf no longer mantains a single master process. Instead, like
733 Perl, each Listener process writes its own PID file and can be managed
734 individually. Related to this, much code was cleaned up in
737 osrf_ctl.sh now has the ability to stop/start individual services for
738 Perl and C, using the new -s <service> option. Examples:
740 osrf_ctl.sh -l -a restart_c -s opensrf.math
741 osrf_ctl.sh -l -a restart_perl -s opensrf.settings
743 Signed-off-by: Bill Erickson <berick@esilibrary.com>
744 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
746 73 8 bin/osrf_ctl.sh.in
747 5 0 include/opensrf/osrf_system.h
748 57 13 src/libopensrf/opensrf.c
749 1 0 src/libopensrf/osrf_prefork.c
750 205 389 src/libopensrf/osrf_system.c
752 commit ab83a04551cd333870d0ee6679e5aa6f4342cfb3
753 Author: Bill Erickson <berick@esilibrary.com>
754 Date: Wed Jul 31 09:34:19 2013 -0400
756 LP1204123 osrf_ctl.sh supports sending signals
758 Using the following new options to osrf_ctl.sh, the script can now send
759 signals to any/all OpenSRF Listener processes:
761 -a signal / signal_all
762 -k <signal> [value passed to 'kill -s']
765 With an action of 'signal' and service provided by -s, the specified
766 signal is sent only to the listener process of the service.
768 With an action of 'signal_all', the specified signal is sent to all
771 Signed-off-by: Bill Erickson <berick@esilibrary.com>
772 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
774 73 2 bin/osrf_ctl.sh.in
776 commit cb6bdf156a69a60fa0a55006b6f638853da3b9f0
777 Author: Bill Erickson <berick@esilibrary.com>
778 Date: Wed Jul 24 16:28:15 2013 -0400
780 LP1204123 Don't treat interrupts as errors
782 Interrupted calls to select() are generally not errors, but more likely
783 signals received by the process. Avoid setting the transport_client
784 error flag to true in these cases. Otherwise, after one signal is
785 received, no other outbound communication can occur on the client
788 Signed-off-by: Bill Erickson <berick@esilibrary.com>
789 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
791 1 3 src/libopensrf/transport_client.c
792 0 1 src/libopensrf/transport_session.c
794 commit ab845cdebe7588a7fd4fb67317b7deab557fa210
795 Author: Bill Erickson <berick@esilibrary.com>
796 Date: Tue Jul 23 12:06:48 2013 -0400
798 LP1204123 SIGUSR2 causes router re-register (Perl/C)
800 When a listener process receives the USR2 signal, the 'register' command
801 is sent to all known routers. This allows for the addition of new
802 routers to running opensrf services.
804 If a register command is sent to a router for which the process is
805 already successfully register, the router will safely discard it, so
806 multiple SIGUSR2 calls are safe.
808 Minor int => bool clarification repair to existing C shutdown
809 (prefork_clear) code.
811 Signed-off-by: Bill Erickson <berick@esilibrary.com>
812 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
814 20 5 src/libopensrf/osrf_prefork.c
815 1 0 src/perl/lib/OpenSRF/Server.pm
817 commit 84d949cc09de9e2689b76541caeae524ab3b1f1e
818 Author: Bill Erickson <berick@esilibrary.com>
819 Date: Tue Jul 23 11:31:34 2013 -0400
821 LP1204123 opensrf.settings reload file option
823 opensrf.settings API calls
825 opensrf.settings.host_config.get
826 opensrf.settings.default_config.get
828 now sport an additional "reload" boolean parameter. When set, the settings
829 file (opensrf.xml) will be reloaded from the file system to pick up any
830 changes which have occurred since the last load/reload.
832 Signed-off-by: Bill Erickson <berick@esilibrary.com>
833 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
835 8 5 src/perl/lib/OpenSRF/Application/Settings.pm
836 13 24 src/perl/lib/OpenSRF/Utils/SettingsClient.pm
837 23 26 src/perl/lib/OpenSRF/Utils/SettingsParser.pm
839 commit 0e535cb775b78699f7ff15d9b73479f0aeaa4246
840 Author: Bill Erickson <berick@esilibrary.com>
841 Date: Mon Jul 22 16:44:26 2013 -0400
843 LP1204123 SIGTERM graceful shutdown (C)
845 When a TERM signal is received, the listener parent process will wait
846 for all child processes to complete any active tasks before killing the
847 child processes and shutting down.
849 Receiving a SIGINT or SIGQUIT results in a non-graceful shutdown.
851 In all cases, the system first un-registers with all routers.
853 Signed-off-by: Bill Erickson <berick@esilibrary.com>
854 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
856 75 20 src/libopensrf/osrf_prefork.c
858 commit fc2dc403640ed245ff2ba8c3f44beea727d0e7cc
859 Author: Bill Erickson <berick@esilibrary.com>
860 Date: Tue Jul 23 10:40:09 2013 -0400
862 LP1204123 SIGUSR1 causes router unregister (Perl/C)
864 $ kill -s USR1 <listener_pid>
866 The listener process will unregister all router connections. This
867 allows services to remove themselves from consideration for new
868 inbound requests while allowing their drone processes to complete
869 any currently running tasks.
871 Signed-off-by: Bill Erickson <berick@esilibrary.com>
872 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
874 50 13 src/libopensrf/osrf_prefork.c
875 4 1 src/perl/lib/OpenSRF/Server.pm
877 commit 8cc60399d97466c43a87df7e48e80dbc3b88c2d6
878 Author: Bill Erickson <berick@esilibrary.com>
879 Date: Fri Jun 21 16:43:01 2013 -0400
881 LP1204123 SIGTERM causes graceful shutdown (Perl)
883 When sent the SIGTERM signal, listener processes will wait for all child
884 processes to complete their currently running tasks before killing all
885 child processes and exiting.
887 SIGQUIT and SIGINT can still be used for semi-graceful shutdowns, where
888 the listener de-registers and cleans up child processes, but does not
889 wait for child processes to finish their tasks.
891 To kill with fire, SIGKILL is still your friend.
893 Signed-off-by: Bill Erickson <berick@esilibrary.com>
894 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
896 20 4 src/perl/lib/OpenSRF/Server.pm
898 commit c69aced833683b5256554330aa652f3dd7556d10
899 Author: Bill Erickson <berick@esilibrary.com>
900 Date: Wed Jun 26 14:51:52 2013 -0400
902 LP1204123 Set SIGCHLD handler to DEFAULT for children (perl)
904 Remove the special SIGCHLD handler applied to the parent/listener
905 process from spawned child processes (drones) by setting child handler to
906 DEFAULT. Otherwise, if an OpenSRF drone process spawns a sub-process,
907 the drone will execute the SIGCHLD handler meant for the Listener when
908 the sub-process dies, wherein hijinks ensue.
910 Signed-off-by: Bill Erickson <berick@esilibrary.com>
911 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
913 1 1 src/perl/lib/OpenSRF/Server.pm