The following works fine when placed in /etc/logrotate.d/apache and
"included" in /etc/logrotate.conf
~~~~ Works! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/log/httpd/access.log {
monthly
rotate 3
olddir /var/log/httpd/archive
postrotate
/usr/bin/killall -HUP httpd
endscript
}
/var/log/httpd/error.log {
monthly
rotate 3
olddir /var/log/httpd/archive
postrotate
/usr/bin/killall -HUP httpd
endscript
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When I add this portion to /etc/logrotate.d/apache logrotate fails...
~~~~ Doesn't Work! ~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/log/httpd/virtual/www.some-virtual-domain.com/access.log {
monthly
rotate 3
olddir /var/log/httpd/virtual/www.some-virtual-domain.com/archive
postrotate
/usr/bin/killall -HUP httpd
endscript
}
/var/log/httpd/virtual/www.some-virtual-domain.com/error.log {
monthly
rotate 3
olddir /var/log/httpd/virtual/www.some-virtual-domain.com/archive
postrotate
/usr/bin/killall -HUP httpd
endscript
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
One bit that's interesting is that "logrotate -d /etc/logrotate.conf"
finishes to completion while both "logrotate -v /etc/logrotate.conf" &
"logrotate /etc/logrotate.conf" segfault...
Anyone?
Thanks!
~Jason
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.