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]

[Support #LSJ-519536]: LDM log rotation



Ryan,

> You asked a good question.  Being fairly new to LDM, I had to contact
> the person who was responsible for our LDM configuration.  He said that
> we don't use the syslog functionality, rather we supply the name of the
> log file to the rpc.ldmd program via the -l switch.  He said we were
> striving for a more "out-of-the-box" approach that didn't require root
> intervention.

Non-standard installations make it harder for us to help you.

"Root intervention" is necessary, anyway, in order for the LDM server
to listen on its registered port number (388).

> Should the newlog rotation still work with the way we're
> doing it, or is that something you have to use syslog for?

The "ldmadmin newlog" command won't work correctly.  It will rename the
log files, but logging will continue to go into the currently active
log file, as you've observed.

We *strongly* recommend using a standard installation.  If that isn't
possible, then you'll have to do something like the following:

    mv -f $HOME/logs/ldmd.log.6 $HOME/logs/ldmd.log.7
    mv -f $HOME/logs/ldmd.log.5 $HOME/logs/ldmd.log.6
    ...
    cp $HOME/logs/ldmd.log $HOME/logs/ldmd.log.1
    cat /dev/null >$HOME/logs/ldmd.log

Good luck.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: LSJ-519536
Department: Support LDM
Priority: Normal
Status: Closed


 
 
  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