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.

logrotate error

Discussion in 'General Discussion' started by carpman1, Feb 23, 2003.

  1. carpman1

    carpman1 Member

    Joined:
    Jan 25, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Hello, i have been playing about with getting /usr/local/apache/access_log and error_log to rotate;

    i created a file in /etc/logrotate.d/ which contained:

    /usr/local/apache/logs/access_log {
    missingok
    postrotate
    /usr/bin/killall -HUP httpd 2& /dev/null || true
    endscript
    }


    /usr/local/apache/logs/error_log {
    missingok
    postrotate
    /usr/bin/killall -HUP httpd 2& /dev/null || true
    endscript
    }

    this does rotate logs but now i get an error email:
    /etc/cron.daily/logrotate:

    2: no process killed
    /tmp/logrotate.JNmk8a: /dev/null: Permission denied
    /tmp/logrotate.6iAlzd: /dev/null: Permission denied
    2: no process killed


    any ideas?

    also will there be any problems setting logrotate conf to compress logs

    thanks
     
  2. thomas

    thomas Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Try this:

     
Loading...

Share This Page