[UPHPU] apache error log not rotating

Clint Savage herlo1 at gmail.com
Mon Sep 3 16:37:09 MDT 2007


>
> /usr/local/apache/logs/access_log /usr/local/apache/error_log / { {
>            rotate 5
>            size=100k
>            sharedscripts
>            postrotate
>                                      /sbin/killall -HUP httpd
>            endscript
>         }
>
>
> Any advice or recommendations? Is that sufficient?
>
Here's mine - using Fedora 7

/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    postrotate
  /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
}

Cheers,

Clint


More information about the UPHPU mailing list