From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/546 Path: main.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: svlogd -tt Date: Thu, 29 Jul 2004 14:12:58 +0300 Organization: asdfGroup Inc., http://www.asdfGroup.com/ Message-ID: <20040729111258.GA4786@home.power> References: <40FD6BB6.5000902@zweipol.net> <20040728230201.GM22412@home.power> <4108CDAB.1060709@zweipol.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091099591 2509 80.91.224.253 (29 Jul 2004 11:13:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jul 2004 11:13:11 +0000 (UTC) Original-X-From: supervision-return-784-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Jul 29 13:13:02 2004 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1Bq8qM-0001C4-00 for ; Thu, 29 Jul 2004 13:13:02 +0200 Original-Received: (qmail 23657 invoked by uid 76); 29 Jul 2004 11:13:23 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 23650 invoked from network); 29 Jul 2004 11:13:22 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <4108CDAB.1060709@zweipol.net> User-Agent: Mutt/1.5.6i Xref: main.gmane.org gmane.comp.sysutils.supervision.general:546 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:546 Hi! On Thu, Jul 29, 2004 at 12:12:59PM +0200, Henrik Heil wrote: > I know that i can use the mtime to select the logfiles. > Thanks for the examples anyway. I still think that this is kind of a > workaround. > With the mtime approach you could argue that there is no need for a > timestamp in the filenames at all. Even without mtime you could do a > script that looks in all the files to select ranges. > In my opinion a log processor program would the preferable solution and > fit well in the runit-suite. Hmm... how about this idea for log processor program: 1) svlogd execute processor which just fork in background and return log file without changes back to svlogd 2) svlogd remove old TAI-logfile and create new TAI-logfile 3) processor (forked in background) notice log rotation is done (how?) and then: 1) execute 'ln newTAIlogfile newLOCALTIMElogfile' to create hard linked file 2) search for some oldLOCALTIMElogfile with only one hardlink to it (because oldTAIlogfile which was hardlinked to it was just removed by svlogd) and remove it too 3) exit Maybe it's better to do this work in cron-script instead of log processor. -- WBR, Alex.