From owner-freebsd-questions@FreeBSD.ORG Wed Jun 18 15:29:15 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 788CE1065676 for ; Wed, 18 Jun 2008 15:29:15 +0000 (UTC) (envelope-from david.robillard@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id 441E68FC1C for ; Wed, 18 Jun 2008 15:29:15 +0000 (UTC) (envelope-from david.robillard@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so6810265rvf.43 for ; Wed, 18 Jun 2008 08:29:15 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=IHu31/aX0h4bUpyjp+sMCQeQmqUEKJUzTWJSG8RcBj4=; b=a+Cln8PBcSwQXNZWPlJvEBNW4Xh/52Itk6vb2ppuX9oiAcJKVFfoXpUeNJheidE2q4 oV5k1AQf49VKmeOHJl0u3OqbES2gO3wtmBtVJIsVJiT3vc4kPNPo8vutmL+shouS1VnT Q5UlKIwkEopt5jBvKN5JNF6Q1gNIYssChoo9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=fVkISXxsG/OufoRLDPz7NUPm9OWdDImo7kf4w4gATh5qNTRIJ/tOjRywpXpR6gTAfB RMkMg47eUuMG8KJgE71EvFTozfOGbVCZEDPvX1lUJ28dvY3wA3nUlze/SI+gi/eMu8zV FzU3MSmvWf8NdweaK7L+elSu6C98EibkPzYaI= Received: by 10.141.142.15 with SMTP id u15mr5466419rvn.145.1213802954014; Wed, 18 Jun 2008 08:29:14 -0700 (PDT) Received: by 10.141.19.8 with HTTP; Wed, 18 Jun 2008 08:29:13 -0700 (PDT) Message-ID: <226ae0c60806180829i30a79975l40aaf42184af78dd@mail.gmail.com> Date: Wed, 18 Jun 2008 11:29:13 -0400 From: "David Robillard" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Ruben de Groot , Agus , 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: Wed, 18 Jun 2008 15:29:15 -0000 >> Well, i take this opportunity also to ask about Apache too....which signal >> should i send? > > A HUP signal should work for apache. Actually, the Apache documentation says that one must use USR1 instead of HUP to send a gracefull restart instead of a hangup. This is to let the children httpd processes some time to finish their transactions before the master restarts. It is also for this reason that the logs should not be compressed by newsyslogd. This is what we use in newsyslog.conf(5) for our Apache servers: /var/log/httpd/access.log 640 5 1024 * B /var/run/httpd.pid 30 /var/log/httpd/error.log 640 5 1024 * B /var/run/httpd.pid 30 /var/log/httpd/ssl.log 640 5 1024 * B /var/run/httpd.pid 30 Of course, your log file names will vary according to your preferences and VirtualHosts. HTH, David -- David Robillard UNIX systems administrator & Oracle DBA CISSP, RHCE & Sun Certified Security Administrator Montreal: +1 514 966 0122