SIGTERM graceful shutdown (Perl) user/berick/sigterm-graceful-shutdown
authorBill Erickson <berick@esilibrary.com>
Fri, 21 Jun 2013 20:43:01 +0000 (16:43 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 21 Jun 2013 20:43:01 +0000 (16:43 -0400)
commitb318088b68bf8efd14d7e9d46388a965e97f91e9
tree1c5266b863688debde23d1dd1e8bdc5f63310d73
parent9bda0431374055bc4bbe440e3f5f8772022f074a
SIGTERM graceful shutdown (Perl)

When sent the SIGTERM signal, listener processes will wait for all child
processes to complete their currently running tasks before killing all
child processes and exiting.

SIGQUIT and SIGINT can still be used for semi-graceful shutdowns, where
the listener de-registers and cleans up child processes, but does not
wait for child processes to finish their tasks.

To kill with fire, SIGKILL is still your friend.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
src/perl/lib/OpenSRF/Server.pm