Date: Fri, 25 Nov 2005 14:28:31 +0000 From: Gerald de la Pascua <gerald@homes-on-line.com> To: Luke Hollins <lwh@pathcom.com> Cc: freebsd-stable@freebsd.org Subject: Re: Rotating web server logs without restarting Apache Message-ID: <1bcf5ef90511250628l6da1a5ex863f1feed8faaedb@mail.gmail.com> In-Reply-To: <4386FF87.9070506@pathcom.com> References: <200511250845.43542.distro.watch@msa.hinet.net> <4386FF87.9070506@pathcom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I usally just copy the file and then echo > /var/log/apache/httpd_log and apache doesn't seem to need to be restarted, thanks Gerald On 11/25/05, Luke Hollins <lwh@pathcom.com> wrote: > > Ladislav Bodnar wrote: > > >Hi, > > > >Every time my httpd-access.log file is rotated I need to restart Apache, > >otherwise it won't write into the new httpd-access.log file. > > > >Is there a way for Apache (version 2.0.55 on FreeBSD 6.0) to write to th= e > >new log file without the need to restart it? I restart it routinely from > a > >cron job, but occasionally Apache fails to restart (or more precisely, i= f > >fails to shutdown completely before it is told to come up again). > > > > > > > If you send it kill -USR1 instead of restarting it, it will close and > re-open the logfile(s). > > -- > PGP: http://www.pathcom.com/~lwh/lwh@pathcom.com.asc > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1bcf5ef90511250628l6da1a5ex863f1feed8faaedb>