From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NA4AR-0006yw-Pz for garchives@archives.gentoo.org; Mon, 16 Nov 2009 16:11:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 049C1E0ABD for ; Mon, 16 Nov 2009 16:11:03 +0000 (UTC) Received: from mail.caf.com.tr (mail.caf.com.tr [88.250.85.68]) by pigeon.gentoo.org (Postfix) with ESMTP id 51357E0942 for ; Mon, 16 Nov 2009 15:56:12 +0000 (UTC) Received: from localhost (sunny.caf.com.tr [127.0.0.1]) by mail.caf.com.tr (Postfix) with ESMTP id 8795A39E36B for ; Mon, 16 Nov 2009 15:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=caf.com.tr; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=originating; t= 1258386970; bh=yqy1mAHVgNxTbZVbw5yNx0sB+dNxv+Mxv2Xi8yAQfmw=; b=q DC1663Yz35rC28GscLLk7I9H6bXCz39mVa2eWj1A/8kqfnidU8dNcbCi5PJIk+TH a682dYxqjo9TbDsnxcng4RWEc9SAhrsqHKUs+UibJpFCypm6gy2z6bl5XtLF5Ev+ OkjKqmKbkr8CfpGz+6qZx/nO7e5xpATj9o4i78C9f0= X-Virus-Scanned: amavisd-new at caf.com.tr Received: from mail.caf.com.tr ([127.0.0.1]) by localhost (sunny.caf.com.tr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WzkkzcX-HmPB for ; Mon, 16 Nov 2009 15:56:10 +0000 (UTC) Received: from [10.0.0.14] (unknown [10.0.0.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eray.aslan@zeplin.net) by mail.caf.com.tr (Postfix) with ESMTPSA id 37EDF39E355 for ; Mon, 16 Nov 2009 15:56:10 +0000 (UTC) Message-ID: <4B017607.80102@caf.com.tr> Date: Mon, 16 Nov 2009 17:55:51 +0200 From: Eray Aslan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] strange cron messages... References: <4AFEB84B.2010107@gmail.com> <200911141753.24403.wonko@wonkology.org> <200911151145.28867.michaelkintzios@gmail.com> <4B00F9AE.8010209@caf.com.tr> <20091116124606.055ceff5@digimed.co.uk> In-Reply-To: <20091116124606.055ceff5@digimed.co.uk> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: a398d638-b003-481a-8bca-63962dd6eb3d X-Archives-Hash: e0622830d04f7f405491b1df14a53fc2 On 16.11.2009 14:46, Neil Bothwick wrote: > On Mon, 16 Nov 2009 09:05:18 +0200, Eray Aslan wrote: > >> - No need to logrotate with time based filenames. Hence, no need to >> "kill -HUP" the syslog daemon. No missed logs. > > Then how do you get the server to use the new logfile names each > day/week? It creates and uses a new file each hour/day/etc. Perhaps, you missed the file(...) directive? Reposting for your reference: destination mail { file("/var/log/mail/$YEAR/$MONTH/$DAY/$HOUR" [...] > You only need to send a SIGHUP to the server using that log > facility, so syslog would not be affected in your example. I can't parse this. The point is avoiding SIGHUP so that we do not miss any log messages. OP asked how one manages log files without logrotate and the answer is with time based file names. It has the additional benefit of avoiding SIGHUP. -- Eray