Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #KCB-737668]: 2 ldm server instances restart problem



Mark,

> Yep.  I tried that.  Everything I tried with ldmadmin kept telling me
> 'LDM server running'.  I couldn't do anything with it.
> 
> Keep in mind the isRunning() in ldmadmin was hacked by Lou and I to get
> the server running again, so any ldmadmin command will probably work now.

Was a new version of "perl" recently installed?  If so, then this
might account for the new behavior of the isRunning() function in
the "ldmadmin" script.

I modified the isRunning() function in the "ldmadmin" script based on
your observations.  I would be very interested in its behavior on your
system.  The new function is attached.  Would you be willing to try it?

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: KCB-737668
Department: Support LDM
Priority: Normal
Status: On Hold
sub isRunning {
    my($running) = 0;
    my($pid) = getPid();

    if ($pid != -1) {
	system("kill -0 $pid > /dev/null 2>&1");
	$running = !$?;
    }

    if (!$running) {
	my($cmd_line) = "ldmping -l- -i 0";

	if (length($ip_addr)) {
	    $cmd_line .= " $ip_addr";
	}

	system("$cmd_line > /dev/null 2>&1");
	$running = !$?;
    }

    return $running;
}

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690