From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/576 Path: main.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: [runit/svlogd] RFE: periodic log-rotation; filter-malfunction Date: Fri, 3 Sep 2004 11:15:48 -0400 (EDT) Message-ID: References: <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 1094224610 23069 80.91.224.253 (3 Sep 2004 15:16:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2004 15:16:50 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-814-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Sep 03 17:16:34 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 1C3Fnl-0006ok-00 for ; Fri, 03 Sep 2004 17:16:33 +0200 Original-Received: (qmail 27758 invoked by uid 76); 3 Sep 2004 15:16:54 -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 27752 invoked from network); 3 Sep 2004 15:16:54 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: Enrico Scholz In-Reply-To: <87llfse3k2.fsf@kosh.ultra.csn.tu-chemnitz.de> Xref: main.gmane.org gmane.comp.sysutils.supervision.general:576 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:576 On Thu, 2 Sep 2004, Enrico Scholz wrote: > > I'll have to think about it, in the meantime you could setup a separate > > service doing this work, e.g.: > > > > /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). You're running stunnel and bash (and probably SysVinit and xinetd), and you point the bloat finger at one little runsv process? If you want to start a new shell less frequently, do: #!/bin/ash while true do runsvctrl alarm /var/service/socklog/log sleep done If you want a small solution, write a small program which trickles "a" characters into the control fifo for socklog/log, then supervise it. --- Charlie