You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Bryce Ryan <br...@priscilla.ultima.org> on 1996/06/08 21:16:18 UTC
Re: feature idea
My mailer says that Brian Behlendorf said:
>
> with log rotation currently, if you want to have the server wake up and
> start logging somewhere else, you send it a HUP - but this also has the
> effect of killing whatever transfers are in progress. For most sites
> this is noise since it happens late at night; but for some involved in
> large-file downloads (we're setting up a site with 10 megabyte TIFFs for
> example) this is something of a "bug". Any ideas on how to ameliorate
> this?
>
i've been thinking about this problem myself, for some time. For sysadmin
type geeks, the problem is very similar to what needs to get done when
shutting down a multi-threaded OS: one synchronizes the file system.
Apache needs a "sync" function to pull this one off, since all open file
descriptors will need to be closed and reopened.
I think one might accomplish this by fielding/catching a different
signal that HUP, say, for example USR1, USR2 or CONT, serializing
all the children, mucking with the file descriptors, reopening them,
and continuing.
<big wave of hands :-) >
I can't say i've got an implementation handy, but this seems like the
direction i'd be taking if i were solving this problem.
--
=== Bryce Ryan ========= AMBIANCE ======== brycer@ultima.org ===
=== Internet Services, Education and ToasterNet Construction ===
=== Web Weather at http://priscilla.ultima.org/stats.html ===