I run it on a chrooted server...works fine.

ErrorLog "|/usr/local/sbin/cronolog /var/www/logs/%Y/%m/%d/error.log"
CustomLog "|/usr/local/sbin/cronolog /var/www/logs/%Y/%m/%d/access.log"
combined

I don't think there's any more configuration than that.
-- 
~Allie D.


On Tue, May 15, 2007 13:41, Robert Zajda wrote:
> But it dont' want to work in chroot.
>
> On 5/15/07, Allie D. <[EMAIL PROTECTED]> wrote:
>> Cronolog...no restart needed.
>> --
>> ~Allie D.
>>
>>
>> On Tue, May 15, 2007 12:11, John Mendenhall wrote:
>> >> If you don't mind a second or two of down time then you can use
>> >> something like this in newsyslog.conf as a restart command:
>> >>
>> >> "apachectl stop;sleep 1;apachctl start;sleep 10;apachectl start"
>> >>
>> >> The first sleep gives apache a second to finish active requests
>> before
>> >> trying to start again.  The second sleep and start is to catch the
>> case
>> >> where the first start fails because apache is still running.
>> >
>> > I have a script which does the following:
>> >
>> > + rotates logs
>> > + calls apachectl stop (twice, with sleep 2 after each call)
>> > + calls apachectl stop and greps the output to make sure it is stopped
>> >   (looks for 'not running')
>> > + if I don't find not running, pages me
>> > + run apachectl startssl
>> >
>> > This is all in a wrapper script which then calls awstats
>> > after a successful rotate and restart.
>> >
>> > Works for us.
>> >
>> > JohnM
>> >
>> > --
>> > john mendenhall
>> > [EMAIL PROTECTED]
>> > surf utopia
>> > internet services

Reply via email to