package OpenSRF::Application::Settings;
use OpenSRF::Application;
use OpenSRF::Utils::SettingsParser;
+use OpenSRF::Utils::Logger qw/$logger/;
use base 'OpenSRF::Application';
+sub child_exit {
+ $logger->debug("settings server child exiting...$$");
+}
__PACKAGE__->register_method( method => 'get_host_config', api_name => 'opensrf.settings.host_config.get' );
use strict; use warnings;
use base qw/OpenSRF/;
use OpenSRF::EX qw(:try);
-use OpenSRF::Utils::Logger qw(:level);
+use OpenSRF::Utils::Logger qw(:level $logger);
use OpenSRF::Transport::PeerHandle;
use OpenSRF::Application;
use OpenSRF::AppSession;
use IO::Socket::INET;
use IO::Socket::UNIX;
-# XXX Need to add actual logging statements in the code
-my $logger = "OpenSRF::Utils::Logger";
-
sub DESTROY { confess "Dying $$"; }
-
=head1 What am I
All inbound messages are passed on to the UnixServer for processing.
return OpenSRF::Transport::PeerHandle->retrieve;
}
+sub child_finish_hook {
+ $logger->debug("attempting to call child exit handler...");
+ OpenSRF::Application->application_implementation->child_exit
+ if (OpenSRF::Application->application_implementation->can('child_exit'));
+}
+
+
1;