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!

antirelayd & logrotate

Discussion in 'General Discussion' started by ntwaddel, Feb 3, 2005.

  1. ntwaddel

    ntwaddel Well-Known Member

    Joined:
    Nov 3, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Templeton, CA
    Im trying to rotate my maillog once a month but for some reason everytime it rotates antirelayd wont read maillog again until i restart syslog and antirelayd. I even set this in my logrotate

    /var/log/maillog {
    sharedscripts
    notifempty
    postrotate
    /etc/init.d/syslog restart
    /etc/init.d/antirelayd restart
    endscript
    }

    But its no help, i still have to restart them both again after logrotation :(
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Did you check the other /etc/logrotate.d/* files to make sure that something else isn't rotating the file (e.g. /etc/logrotate.d/syslog)?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ntwaddel

    ntwaddel Well-Known Member

    Joined:
    Nov 3, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Templeton, CA
    the thing i copied was from the very bottom of my /etc/logrotate.d/syslog file
     
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