You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Xiongfei Wang <wa...@arches.uga.edu> on 2003/02/12 15:18:22 UTC

[users@httpd] why not rotate?

In my /etc/logrotate.d/apache, i i have

-------------------------------------------
/var/log/httpd/perkdb-dev/access_log {
       daily
       rotate 4
       missingok
       postrotate
            /usr/bin/killall -HUP httpd
       endscript
}

/var/log/httpd/perkdb/access_log {
           rotate 4
           daily
           postrotate
                  /usr/bin/killall -HUP httpd
           endscript
}
-------------------------------------

but two access log file did not get rotated.
why? how to fix this problem? thanks.

J.P.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] why not rotate?

Posted by Benjamin Krueger <be...@seattlefenix.net>.
* Xiongfei Wang (wangxf@arches.uga.edu) [030212 06:15]:
> 
> In my /etc/logrotate.d/apache, i i have
> 
> -------------------------------------------
> /var/log/httpd/perkdb-dev/access_log {
>        daily
>        rotate 4
>        missingok
>        postrotate
>             /usr/bin/killall -HUP httpd
>        endscript
> }
> 
> /var/log/httpd/perkdb/access_log {
>            rotate 4
>            daily
>            postrotate
>                   /usr/bin/killall -HUP httpd
>            endscript
> }
> -------------------------------------
> 
> but two access log file did not get rotated.
> why? how to fix this problem? thanks.
> 
> J.P.

Run /usr/sbin/logrotate -dv /etc/logrotate.d/apache

This will run that particular logrotate script in debug (-d) mode
verbosely (-v). This should tell you why the rotation did not
occure. If logrotate tells you the files don't need to be rotated,
use the force (-f) option as well.

-- 
Benjamin Krueger

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org