Re: lograte rotating logs at 4:02am. why not at 12:00am?

From: Ed Wilts (ewilts_at_ewilts.org)
Date: 04/23/04

  • Next message: Reuben D. Budiardja: "Re: upgrading drive problems"
    Date: Fri, 23 Apr 2004 16:27:37 -0500
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    

    On Fri, Apr 23, 2004 at 03:16:00PM -0400, Javier Gostling wrote:
    > On Fri, Apr 23, 2004 at 12:03:16PM -0700, Chris W. Parker wrote:
    > > my question is: why are they not starting at 12am and how can i adjust
    > > this?
    >
    > The reason is quite simply Daylight Saving Time. If you rotate at midnight,
    > as someone where I work decided before I came in, you face the following
    > issues when time changes:
    >
    > 1. When skipping from 00:00 to 01:00, if cron doesn't wake before the clock
    > shift, the log rotation will not occur.
    >
    > 2. When skipping back from 00:00 to 23:00, if cron wakes before the clock
    > shift, the log will be rotated twice.
    >
    > I have seen both issues happen. To avoid both problems, rotate after 01:00
    > and before 23:00.

    I don't know where you live, but in Canada and the US, the shift to/from
    Daylight Savings Time occurs at 2am.i Avoid cron jobs between 2am and
    3am.

    -- 
    Ed Wilts, Mounds View, MN, USA
    mailto:ewilts@ewilts.org
    Member #1, Red Hat Community Ambassador Program
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Reuben D. Budiardja: "Re: upgrading drive problems"

    Relevant Pages