[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: /etc/logrotate.d/httpd



On Thu, 2005-10-20 at 19:26 -0500, Mike Kercher wrote:
> nahant-list-bounces redhat com <> scribbled on Thursday, October 20, 2005
> 7:18 PM:
> 
> > Tim Evans wrote:
> >>>        /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2>
> >>> /dev/null
> >>>>> true
> >>>    endscript
> >>> }
> >>> 
> >>> 
> >>> 
> >>> Why does this logrotate script kill httpd or am I reading
> > this wrong?
> >>> 
> >> 
> >> 'HUP' means re-read the config file and resart.
> >> 
> > 
> > But even then.
> > 
> > Why does the httpd need to be restarted after a log rotate?
> 
> Because the old log is rotated (mv'd to log.1/2/3)  Restarting httpd allows
> it to create a new log file...otherwise, nothing would get logged.

Actually it would continue to log to the old (rotated) logfile.

-Michael



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]