[CentOS] Logrotate Problem

Balaji balajisundar at midascomm.com
Wed Jul 30 10:31:05 UTC 2008


Dear All,

   Currently  i am using CentOS 4.4 Linux
   I have configured crontab to run cron.daily at 4:02 am
   2 4 * * *       root    run-parts /etc/cron.daily

   On 4:02 am my pc is shutdown and i am boot-up my pc on 13:11:10
   Please verify the system log messages from "/var/log/messages" file
   Jul 30 13:11:10 localhost syslogd 1.4.1: restart (remote reception).
   Jul 30 13:11:10 localhost snmpd[2663]: Received TERM or STOP 
signal...  shutting down...
   Jul 30 13:11:11 localhost snmpd: snmpd shutdown succeeded
   Jul 30 13:11:11 localhost snmpd: snmpd startup succeeded
   Jul 30 13:11:12 localhost syslogd 1.4.1: restart (remote reception).
   Jul 30 13:11:12 localhost logrotate: ALERT exited abnormally with [1]

    But Logrotate will be done after PC is boot-up

   Please verify the logrotate messages from "/var/spool/mail/root" file
    From root at localhost  Wed Jul 30 13:15:07 2008
    Return-Path: <root at localhost>
    Received: from localhost (localhost.localdomain [127.0.0.1])
            by localhost (8.13.1/8.13.1) with ESMTP id m6U7j7ll012654
            for <root at localhost>; Wed, 30 Jul 2008 13:15:07 +0530
    Received: (from root at localhost)
            by localhost (8.13.1/8.13.1/Submit) id m6U7j7xn012641
            for root; Wed, 30 Jul 2008 13:15:07 +0530
    Date: Wed, 30 Jul 2008 13:15:07 +0530
    Message-Id: <200807300745.m6U7j7xn012641 at localhost>
    From: root at localhost (Anacron)
    To: root at localhost
    Content-Type: text/plain; charset="ANSI_X3.4-1968"
    Subject: Anacron job 'cron.daily'
    /etc/cron.daily/logrotate:

    I am not sure why this is happening. Can some one throw light on this.

Regards
-S.Balaji




More information about the CentOS mailing list