file receives no input after turn over by newsyslog(8)
cary at SDF.ORG
Tue May 10 04:49:22 UTC 2016
On Mon, May 09, 2016 at 06:20:00PM -0600, markham breitbach wrote:
> The problem here is that httpd opens a file handle and keeps it open for
> the log, so after it is rotated, the file handle follows the old file.
> (you should still see entries showing up in the log.0).
> There are many articles written about this, but the idea is you need to
> send apache a signal to release the file handle and start writing to the
> new log. This is the first page that comes up in google:
> On 2016-05-09 4:27 PM, Cary wrote:
> > Hi all,
> > Perhaps someone might be able to help.
> > The /var/log/httpd-access.log file is turned over at least
> > once a week on a VPS running 10.2-Stable.
> > /var/log/httpd-*.log 644 10 500 * GX
> > is the line I have in /etc/newsyslog.conf.
After doing some more reading I found how the configuration in newsyslog.conf
could be modified to send a signal 30 to the server process.
/var/log/httpd-*.log 644 10 500 * GX /var/run/httpd.pid 30
Thank you for your replies Cody and Markham.
More information about the freebsd-questions