On Wed, Sep 23, 2009 at 11:51:04AM -0400, Sol Fulop wrote:
> Is there a way around that??? Like run a command to get all the
> filenames then pipe it to the config directive
> /path/to/logs/access_log.www.*.(com|org|net|us) {} in logrotate.conf?

In that particular instance, you can use:
/path/to/logs/access_log.www.*.com /path/to/logs/access_log.www.*.org \
  /path/to/logs/access_log.www.*.net /path/to/logs/access_log.www.*.us {
  compress
  daily
 ...
}

I don't know if *.{com,org,net,us} works, never tried it. You could also
regenerate the configuration daily from a template file.

-- 
lfr
0/0

Attachment: pgp5QCT8zMFFL.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to