Tenon Intersystems Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation

Search tenon.com

Thanks to:

WebTen

newbie log rolling question...

To: webten@xxxxxxxxx
Subject: newbie log rolling question...
From: Gawain Reifsnyder <gawain@xxxxxxxxxx>
Date: Tue, 16 Nov 1999 16:59:19 -0600
I'm running a WebTen 2.1.10 server with several virtual hosts. I have each server configured to create a separate log file for each vHost. I'm confused about the best way to rotate log files.

One of my vHosts is getting a lot of traffic, and it's time to roll the log files. I decided to try this shell script, included in the WebTen examples folder:

BASEDIR="/usr/local/apache"
LOG="$BASEDIR/logs/WebTen.log"
LOGRESOLVE="$BASEDIR/support/logresolve"

/bin/mv $LOG $LOG.$$
kill -HUP `/bin/cat /etc/httpd/logs/httpd.pid`


---


It renamed the WebTen.log file, and created a new one appended with the date. However, WebTen is not showing any activity in its log window now. Each of the individual vHost log files seem to be working as before. I'm a newbie to shell scripts and Apache in general, so please go easy on me. ;-)

So, I have two questions:

1) How do I get the log window to work again?

2) How can I use a script like this to roll the logs for the other virtual hosts? Say, assuming that one of the sites is called something like www.mysite.com... I'd like to automatically roll logs for all virtual hosts once a week.


Best regards,


Gawain Reifsnyder
Guitar.net, Inc.
http://guitar.net

----
Tenon Intersystems' WebTen Mailing List
To unsubscribe: send mail to webten-request@xxxxxxxxx with the subject: unsubscribe
Find searchable Mailing List archives at
http://listsearch.blueworld.com/webtensearch.lasso


<Prev in Thread] Current Thread [Next in Thread>

| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists