MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] How do you deal with stats?



On Wed, 1 Dec 1999, Rob Zimmerman wrote:

> Yes I use a motified version of that to rotate the logs out to another
> dir which I then resolve and parse with webalizer (all via cron) but
> when you rotate you have to restart apaceh to create the new access
> and error files.  It is this short time frame I am concerned about and
> am probably just doing it wrong as I dont recall that issue every
> being raised...

  I haven't really looked into the rotatelogs program but I imagine you
wouldn't have to stop your web server to use it.  This is because apache
keeps track of the logs via a file handle and not the name of the file, so
you can rename the file while apache is running and apache still writes to
the correct file.  e.g. I have a custom script which renames the
access_log to access_log.datestamp, and I then run apachectl graceful (or
you could just HUP it).  Apache then restarts and creates a new
access_log.  The server is only "down" while it is restarting (spawning
new servers etc), and keeps writing to access_log.datestamp quite happily
up until I call the restart.

  Regards,
          Lee.

--
Lee Hamilton
Systems Administrator
lee@netguide.net



Search for: Match: Format: Sort by: