my $apps = $client->config_value("activeapps", "appname");
if(!ref($apps) eq "ARRAY") { $apps = [$apps]; }
+ if(@$apps == 0) {
+ print "No apps to load, exiting...";
+ return;
+ }
+
for my $app (@$apps) {
# verify we are a settings server and launch
if( $app eq "opensrf.settings" ) {
my $client = OpenSRF::Utils::SettingsClient->new();
my $apps = $client->config_value("activeapps", "appname" );
if(!ref($apps)) { $apps = [$apps]; }
+
+ if(@$apps == 0) {
+ print "No apps to load, exiting...";
+ return;
+ }
+
my $server_type = $client->config_value("server_type");
$server_type ||= "basic";
foreach my $app ( @$apps ) {
+ next unless defined($app);
+
if( $app eq "opensrf.settings" ) { next; }
_log( " * Starting Listener for $app..." );