vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, I run into strange logrotate behaviour, after adding apache virtual hosts to list of rotated files: /var/log/httpd/access_log /var/log/httpd/*/access_log { daily rotate 7 missingok sharedscripts postrotate /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || tru endscript } /var/log/httpd/access_log is rotated daily, but none of /var/log/httpd/*/access_log are rotated. The cat /var/lib/logrotate.status has lines like "/var/log/httpd/sitename/access_log" 2003-7-15 for each of them. RedHat 7.3 is the OS - the same conf file worked nicely in 7.2 Many thanks for a piece of advice! Alex |
| ||||
| One more thing: can the file size affect this? Not rotated files are smaller than 100kb. Alex finest137@yahoo.com (AlexZ) wrote in message news:<e018a8ed.0307150605.6159355e@posting.google. com>... > Hello, > > I run into strange logrotate behaviour, after adding apache virtual > hosts > to list of rotated files: > > /var/log/httpd/access_log /var/log/httpd/*/access_log { > daily > rotate 7 > missingok > sharedscripts > postrotate > /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> > /dev/null || tru > endscript > } > > /var/log/httpd/access_log is rotated daily, but none of > /var/log/httpd/*/access_log are rotated. > > The cat /var/lib/logrotate.status has lines like > > "/var/log/httpd/sitename/access_log" 2003-7-15 > > for each of them. > > RedHat 7.3 is the OS - the same conf file worked nicely in 7.2 > > Many thanks for a piece of advice! > > Alex |