From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2414 Path: news.gmane.org!.POSTED!not-for-mail From: Steve Litt Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Log rotation issue with runit Date: Wed, 26 Dec 2018 00:05:05 -0500 Message-ID: <20181226000505.1e82b362@mydesk.domain.cxm> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1545800586 16137 195.159.176.226 (26 Dec 2018 05:03:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Dec 2018 05:03:06 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2004-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Dec 26 06:03:02 2018 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1gc1LR-000445-7u for gcsg-supervision@m.gmane.org; Wed, 26 Dec 2018 06:03:01 +0100 Original-Received: (qmail 21106 invoked by uid 89); 26 Dec 2018 05:05:38 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21099 invoked from network); 26 Dec 2018 05:05:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=bLNLQkTc+2Pv0SF9wAC1CP88hnhImNuTkPEtOEczMd13/FBD7PuAeysLxHkzsbZuKzUdQbihsTrsHUGhnV1g6JqM+DUXsx9h8rjnLD5+rSpZou02hb4KO0zJSsBGMJZm0LZx/p28tuZohdkK4NG9Fb7f3hCbxDLBwVlbliE3zcE=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1545800707; bh=VdAWgRkFbQmHiaGrO7i8f85EICg=; l=1703; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To: References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; b=VXbIGIE8AxtRcp1MrV7n0GW3ro0K0YPcBE4Uav9jYhW4JKuS9daXleTXMkDvMCQki BM08RnT03FcrYV7Rpju57xIH75fqXv9M2/VYMGcw7iIZMUi+MNAdOgcvROdVJ5riVx ZDI8N8gBuNr6phghaWl/SMlnyB5b5hdpUz5av0e4= X-Originating-IP: [72.188.224.222] In-Reply-To: X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2414 Archived-At: On Tue, 25 Dec 2018 13:39:17 +0000 Dmitry Bogatov wrote: > Hello! > > I am Debian maintainer of `runit' supervision suite. Recently, I > received bug report [^1] about stray .u logfiles. After some > investigation I found code, that caused issue, but it seems that it > was written with some purpose, yet I fail to understand that purpose. > > Author Gerrit Pape directed me here. Any clarification would be > welcome! Please keep bug in thread. > > [^1] https://bugs.debian.org/916230 It's vital that no code be changed until the exact nature of the problem is understood and reproducible at will. The extra files reported in the bug aren't nearly especially inconvenient when compared to possible problems when modifying code that the code's author isn't maintaining on a regular basis. It would be interesting to see the dates and contents of the files: That might shed some light on what's happening. One person in this thread mentioned that .u files shouldn't be rotated and deleted at all. If that's the case, a fairly simple cron job could be made to delete all .u files older than a certain age except the current/latest .u file. That would probably fix the inconvenience endured by the bug reporter, without applying any premature fixes. This seems to be an intermittent problem (not reproducible at will), and very hard to reproduce by anyone but the bug reporter. If the preceding sentence is true, it's possible it will never be solved. In such a situation, a workaround becomes a legitimate tactic. SteveT Steve Litt December 2018 featured book: Rapid Learning for the 21st Century http://www.troubleshooters.com/rl21