From owner-freebsd-questions@FreeBSD.ORG Fri Jun 20 04:52:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 148961065672 for ; Fri, 20 Jun 2008 04:52:07 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id D1A478FC0C for ; Fri, 20 Jun 2008 04:52:06 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so7765270rvf.43 for ; Thu, 19 Jun 2008 21:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=aPROKK/I16f7UcQtQ4J67SkVZhrUM6q5vPhgz3NuDxs=; b=cgYF+X1TtsEXDS7+EBIyDeZkCfXtc8GgiHsn0gtDDQVh/ktj8ZMHD/ENrRu+NxHjs1 7AgO1GWcH/LYZN4QRXZntC6U9tQkFh1kylZmBHtzmn6yPwAkw/2KQHKJJDmWMU6Abtkk mLQJ5tANdLyR86DdUTct5jKSAmSavU2TflqAo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=kzIn5LNNelzHN+oDkOV4hyGV3aVygvT27Foz0gMLw5xSQ4eItpRWtzWWbT+6brhBat R4FYDk648qANyTfB+hdC9Wfs1XiAL7JUeEy0ixEwacLOA3zgQkAUzktCoe9vIBrwNNWH QXreAHVZ/xoFHypopd83j0v7joxtzQeD3R0dU= Received: by 10.140.148.3 with SMTP id v3mr7233579rvd.71.1213937526623; Thu, 19 Jun 2008 21:52:06 -0700 (PDT) Received: by 10.140.158.19 with HTTP; Thu, 19 Jun 2008 21:52:06 -0700 (PDT) Message-ID: Date: Fri, 20 Jun 2008 01:52:06 -0300 From: Agus To: "David Robillard" In-Reply-To: MIME-Version: 1.0 References: <226ae0c60806180829i30a79975l40aaf42184af78dd@mail.gmail.com> <20080619073536.GA99679@ei.bzerk.org> <226ae0c60806190533s3863949am188a579802cdf81b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Ruben de Groot , FreeBSD Questions , Valerio Daelli Subject: Re: Vsftpd rotate logs with newsyslog... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2008 04:52:07 -0000 2008/6/20 Agus : > 2008/6/19 David Robillard : > >> > Well yes, this is precisely the reason why we use a SIGHUP (equivalent >> to >> > "apachectl restart") instead of a SIGUSR1 (apachectl graceful). We don't >> > really care about a few broken client connections since the logs are >> rotated >> > at a quiet time. >> > >> > Of course, YMMV. >> >> Yes, of course :) >> >> > regards, >> > Ruben >> >> Cheers, >> >> DA+ >> -- >> David Robillard >> UNIX systems administrator & Oracle DBA >> CISSP, RHCE & Sun Certified Security Administrator >> Montreal: +1 514 966 0122 >> > > > Thank u all very much guys....i will see if i do a graceful or simply a > restart cause i dont think the apache will be getting too many connections > all the time....but that clarifications was quite good David....and thank u > for the example....that is always the best way to understand things...much > appreciated... > > Will try both....just a question about compression...What i understood from > your mail is that as apache takes some time to let his children close all > connections i shouldn zip those logs cause, newsyslog wont wait till apache > finishes and probably will xip logs that are still being access by the > children? if htat is the case using a HUP will close all and allow me to use > compresion? > > Cheers, > Agustin > Sorry guys...got one more doubt....Why do u use B (binary) if apache logs are simple text? any particular reason? Thanks