Panagiotis Christias wrote:
On Fri, 10 Dec 2004 09:03:47 -0500, Gerard Samuel
<[EMAIL PROTECTED]> wrote:
Is it possible to use wildcards in newsyslog.conf? For example, my current apache setup, I have a few virtual hosts logging into their own file. And instead of specifying each file in newsyslog.conf, Im trying -> /var/log/httpd-*.log root:wheel 640 1 * @T00 B /var/run/httpd.run
It doesn't seem to work. So Im double checking with the list to
see if what Im trying to do is possible (but Im going about it the wrong
way).
It should work. I have a similar entry in my newsyslog.conf:
/var/log/apache/*-access_log 664 1 * @01T00 G /var/run/httpd.pid /var/log/apache/*-error_log 664 1 * @01T00 G /var/run/httpd.pid
Try running newsyslog manually using the "-v" and "-n" options.
Here is what I got by running newsyslog manually -> hivemind# newsyslog -vn --snip-- /var/log/httpd-*.log <1>: does not exist, skipped.
Even though, the files do exist ->
hivemind# ls -al /var/log/httpd-*.log
-rw-r--r-- 1 root wheel 7052038 Dec 10 10:43 /var/log/httpd-access.log
-rw-r--r-- 1 root wheel 212 Dec 9 20:07 /var/log/httpd-cvs_error.log
-rw-r--r-- 1 root wheel 90363 Dec 9 15:25 /var/log/httpd-error.log
-rw-r--r-- 1 root wheel 208 Dec 10 01:26 /var/log/httpd-test1_error.log
-rw-r--r-- 1 root wheel 2332 Dec 9 15:28 /var/log/httpd-www_error.log
Im currently running FreeBSD 5.3-RELEASE-p1, if that means anything. Any other ideas??? Thanks _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"