On Sat, Mar 30, 2002 at 02:41:43PM -0500, Matthew Daubenspeck wrote:
| I have since upgraded from potato to woody and am having some problems with
| the logrotate utility. I have several apache virtual hosts and want to
| rotate them all automatically in the /etc/logrotate.d/apache script.
|
| Can anyone include an example of their log rotation script so I can take a
| peek?
|
| Thanks in advance.
|
|
|
sure.
all my virtual hosts' logs are /var/log/apache/vhost.log, where vhost
is the virtual hostname. here's my /etc/logrotate.d/apache:
/var/log/apache/*.log {
weekly
missingok
rotate 8
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
/etc/init.d/apache reload /dev/null
endscript
}
i think i customized it tho, i only keep 8 weeks worth of logs. this is
also on woody, btw.
good luck,
jason
--
---
| http://theigloo.dhs.org:81 | http://counter.li.org/|
| Debian GNU/Linux 3.0 Woody | 2.4.16-k6 |
| [EMAIL PROTECTED] | registered linux user #202942 |
---
pgpt9cfsLWGuG.pgp
Description: PGP signature