Re: [ldm-users] [Matthew.Foster@xxxxxxxx: Re: 20090109: root owns ldmd.log]

In looking at my config, which is pretty plain vanilla, it doesn't appear that 
logrotate is set up to rotate LDM's logs.  Wouldn't take much, at least on 
RHEL, since you'd just create a file of the correct format and dump it in 
/etc/logrotate.d on install, but it's not there.

Further, the ldm doesn't appear to have a crontab entry to rotate the logs, 
either.  

'ldmadmin newlog <blah blah>' will do it, though, but it's not set to by 
default.  Probably not a good thing.


--
Peter Laws / N5UWY
National Weather Center / Network Operations Center / Remote
University of Oklahoma Information Technology
plaws@xxxxxx

________________________________________
From: ldm-users-bounces@xxxxxxxxxxxxxxxx [ldm-users-bounces@xxxxxxxxxxxxxxxx] 
On Behalf Of Peter Laws [plaws@xxxxxx]
Sent: Friday, January 09, 2009 11:59
To: ldm-users@xxxxxxxxxxxxxxxx
Subject: Re: [ldm-users] [Matthew.Foster@xxxxxxxx: Re: 20090109: root owns 
ldmd.log]

Paul Prestopnik wrote:
> I may be out of my league here, but we had a similar problem.  This is what
> we discovered with an explanation from our IT gurus:
>
>
> In Debian there is a system wide cron that rotates all log files that are 
> controlled by syslog and also meet certain criteria (file size, modify time, 
> etc.). Under some circumstances these criteria will all be met, and when the 
> logs are rotated they get owned by root.

Most distros include logrotate(8) these days.  RHEL certainly does.  Where
ever you rotate LDM's logs, just add:

        create 0664 ldm ldm

in the right spot and that will take care of it.

Not that I've actually done that on mine (/makes note to self/).


> One simple workaround is to simply rotate your logs via the ldm's cron right 
> before the system cron runs. The system cron gets run at 6:24 everyday, so 
> you can just rotate around 6:15 and usually that will work.

Simple, but ugly, unless you don't have root access.


--
Peter Laws / N5UWY
National Weather Center / Network Operations Center
University of Oklahoma Information Technology
plaws@xxxxxx
-----------------------------------------------------------------------
Feedback? Contact my director, Craig Cochell, craigc@xxxxxx. Thank you!
_______________________________________________
ldm-users mailing list
ldm-users@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/


  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the ldm-users archives: