Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    833
    Likes Received:
    1
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chris74108

    chris74108 Well-Known Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice