From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/575 Path: main.gmane.org!not-for-mail From: Joan Picanyol Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: [runit/svlogd] RFE: periodic log-rotation; filter-malfunction Date: Fri, 3 Sep 2004 16:54:28 +0200 Message-ID: <20040903145427.GB59804@grummit.biaix.org> References: <87sma1dmfu.fsf@kosh.ultra.csn.tu-chemnitz.de> <20040902194813.8878.qmail@892d5ec05c70b4.315fe32.mid.smarden.org> <87llfse3k2.fsf@kosh.ultra.csn.tu-chemnitz.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094223409 19336 80.91.224.253 (3 Sep 2004 14:56:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2004 14:56:49 +0000 (UTC) Original-X-From: supervision-return-813-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Sep 03 16:56:22 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 1C3FUD-00050Q-00 for ; Fri, 03 Sep 2004 16:56:21 +0200 Original-Received: (qmail 27544 invoked by uid 76); 3 Sep 2004 14:56:42 -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 27538 invoked from network); 3 Sep 2004 14:56:42 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <87llfse3k2.fsf@kosh.ultra.csn.tu-chemnitz.de> User-Agent: Mutt/1.4.1i Xref: main.gmane.org gmane.comp.sysutils.supervision.general:575 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:575 * Enrico Scholz [20040902 23:56]: > pape@smarden.org (Gerrit Pape) writes: > > /var/service/socklogrotate/run: > > #!/bin/sh > > runsvctrl alarm /var/service/socklog > > exec sleep > > I do not like this, because: > > * it adds extra bloat to the system (it is bad enough that I have to spawn > a stunnel-instance per logrotation; an additional sleep+bash-process > would increase system-load significantly). Without looking at the code, > I guess that an implementation in svlogd would be much smaller because > the SIGALRM handler is already there. > (Things are getting worse because I run 20-30 svlogd instances per > machine in linux-vservers[1] (chroots, BSD-jail like)) Use execline. http://skarnet.org/software/execline/ qvb -- pica