"Graham North" <[EMAIL PROTECTED]> wrote:

> Hello all:
> 
> There has to be a simple fix to this problem - I am using newsyslog and cron
> to rotate my Apache logfiles.    They get rotated and Apache keeps working
> however after a log rotation takes place Apache will not longer log my
> accesses.   It does continue to serve pages but I need to do an apachectl
> restart in order for it to continue logging properly.
> 
> newsyslog.conf and crontab files are attached for reference.

You need to restart apache to get it to start logging to a new file.  Luckily,
newsyslog can do this for you.

With the default Apache install, Apache will log its PID to a file when it
starts, just add this filename (/var/run/httpd.pid) to the end of each
newsyslog entry that rotates an apache file, and newsyslog will automatically
send a HUP signal to that PID when the log file is rotated

See the man pages for newsyslog for more detailed info.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to