newsyslog and apache

Jerry gesbbb at yahoo.com
Thu Oct 2 12:48:17 UTC 2008


On Thu, 02 Oct 2008 14:20:50 +0200
"DA Forsyth" <d.forsyth at ru.ac.za> wrote:

>I used to have one big apache log file, but decided to rotate it once 
>a month using newsyslog.
>
>However, now apache stops and does not restart when the log is 
>rotated.
>
>line from newsyslog.conf
>/var/log/apache/httpd-access.log        640 13     *    $M1D8 B       
>  /var/run/httpd.pid 30
>
>with a similar one for the error log.
>
>I have to manually start apache after this rotates the log.
>
>I alos see that 'apachectl restart' stops apache but it doesn't 
>restart.
>
>any ideas?


I use 'rotatelogs':

http://httpd.apache.org/docs/2.0/programs/rotatelogs.html

to facilitate the rotating of logs. If you need further information,
contact me OL.

-- 
Jerry
gesbbb at yahoo.com

To see a need and wait to be asked, is to already refuse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081002/a61daaf2/signature.pgp


More information about the freebsd-questions mailing list