The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Logrotation advice needed

Discussion in 'General Discussion' started by rs-freddo, Sep 16, 2006.

  1. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I get this email:
    -------------
    /etc/cron.daily/logrotate:

    error: error running postrotate script
    error: error running postrotate script
    error: error running postrotate script
    error: error running postrotate script
    error: error running postrotate script
    error: error running shared postrotate script for /usr/local/apache/logs/*log
    error: error running postrotate script
    error: error running shared postrotate script for /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron

    -----------------
    And this process is active around the time:
    -----------
    root 13278 0.0 0.0 2136 864 ? S 04:02 0:00 /bin/sh /etc/cron.daily/logrotate
    root 13279 0.0 0.0 1956 640 ? S 04:02 0:00 awk -v progname=/etc/cron.daily/logrotate progname {????? print progname ":\n"????? progname="";???? }???? { print; }
    root 13280 0.0 0.0 1632 696 ? S 04:02 0:00 /usr/sbin/logrotate /etc/logrotate.conf
    -------------

    The logs seem to be rotating fine. I'm just not sure about the post rotate bit???????????
    Any ideas appreciated.
     
  2. chris74108

    chris74108 Well-Known Member

    Joined:
    Apr 30, 2004
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page