warn "PID: $$\n";
-OpenSRF::System::bootstrap_client();
+OpenSRF::System->bootstrap_client();
my $session = OpenSRF::AppSession->create( "math" );
try {
$SIG{HUP} = sub{ instance()->hupall(); };
-$SIG{CHLD} = \&process_automation;
+#$SIG{CHLD} = \&process_automation;
{
# Bootstraps a single client connection.
sub bootstrap_client {
+ my $self = shift;
my %params = @_;
my $app = $self->app;
# boot a client
- OpenSRF::System::bootstrap_client( client_name => "system_client" );
+ OpenSRF::System->bootstrap_client( client_name => "system_client" );
$logger->debug( "Setting application implementaion for $app", DEBUG );
my $client = OpenSRF::Utils::SettingsClient->new();
my $host = shift;
warn "Grabbing Host config for $host\n";
- OpenSRF::System::bootstrap_client(client_name => "system_client");
+ OpenSRF::System->bootstrap_client(client_name => "system_client");
$session = OpenSRF::AppSession->create( "settings" ) unless $session;
my $bsconfig = OpenSRF::Utils::Config->current;