From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2420 Path: news.gmane.org!.POSTED!not-for-mail From: Guillermo Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Log rotation issue with runit Date: Thu, 27 Dec 2018 20:39:17 -0300 Message-ID: References: <20181226015822.GH29946@home.lan> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1545953846 4429 195.159.176.226 (27 Dec 2018 23:37:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2018 23:37:26 +0000 (UTC) Cc: 916230-quiet@bugs.debian.org To: Supervision Original-X-From: supervision-return-2010-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Dec 28 00:37:22 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 1gcfDM-0000zM-Pv for gcsg-supervision@m.gmane.org; Fri, 28 Dec 2018 00:37:20 +0100 Original-Received: (qmail 21887 invoked by uid 89); 27 Dec 2018 23:39:58 -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 21880 invoked from network); 27 Dec 2018 23:39:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hCQ9CD6cNWY3zSEM4bO2y2Y+ikbICVjO1+gpC8qyZSg=; b=vbIAZKPdNiVTDQ/L/Und5u1pTMMOtf3fs9X3U/c5zkDJO+55wsdo5puLu+gm897M8a YMGUt6Zfc9WIkMzQF0Q41ib0v7mjCFKGktr+uJdgqSVQw4A9i90aVUsf7H2XiRr5BRUx EHZSccFZ+TFepzpiGmaiOfhNcgEQOVPjBaJ6G3dUtIKBdSoINcCxY/L8xrh0E6YjOwpb kYSOtLnj5znVNMvOFcqfF+J9VfTDj+AeGibu0KSpxDOY6Ct5ElGU4U9699NwidMzhk6e pzzuxavyYpVAPs190cXZm9UereYGX4wwQocalBIXNRqiJ/Ka4FeVRUh/oQv15NMTjLEk ljfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hCQ9CD6cNWY3zSEM4bO2y2Y+ikbICVjO1+gpC8qyZSg=; b=KrmzYBA8e5/CJOaMf1wxeeHFYq3k6E0iRMHnVCkUclTbwfQrO8cO6vRTc3apOR6s/b DWZA1GT7jl98N8FMhLCOybW9brcngwpbMpqoA2pg3fOnqxsY9WD3WP/d+440ZOg1eEER +STyxbDZHietgb+hs/m/i31D0hZlitHa6oljacw06Jvmlu3rsbDVRA3iFNRmGeBJ9Ov+ FuaHkgIEafxBrHZshZffmxGRdrt5tOj2y/BV+AAn0MOXUktRiEPz3lQIglrSquwKjBCt CxPX2ws+a+6BHeM39zT53HCLLTNQgWIFSEdYoToDvOGARCY2MDdxkRJaF4KIRR083xXf 1c1w== X-Gm-Message-State: AA+aEWY6G357dQq9F2YIka5/W1uaQ73d5HuaB0F6rBJ4p1pex2rPyeNU Zhcy7duyBv66ZrYgthGdWDH/T5D8M1bxvEXJYGPlkw== X-Google-Smtp-Source: ALg8bN7xxbrkK84dNQDd110uwApOFKi6rUSLrQ9wJwxXaI9VgZrFIZmGL2Rm/g5ycdmNobNX8v84CuzwvbkqUJVo+DY= X-Received: by 2002:a05:660c:4c5:: with SMTP id v5mr17254561itk.104.1545953969189; Thu, 27 Dec 2018 15:39:29 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2420 Archived-At: El jue., 27 dic. 2018 a las 6:36, Dmitry Bogatov escribi=C3=B3: > > And this issue happens not only on crash, it happens after every > termination of svlogd, due any signal. I would agree that SIGKILL is > crash, but issue reproduces with SIGINT and SIGTERM. SIGTERM should make svlogd exit cleanly, are you sure? It does for me, and when restarted, does not create any .u file (using Gentoo's runit, which is upstream runit plus a minor patch to the makefile). IMO, the bug report shows way too many .u files, this should be a rare occurence. Ideally, there should be none. And according to the timestamps, at least two or sometimes all three loggers are producing a .u file at about the same time, as if they had been started together. > Init: runit (via /run/runit.stopit) > [...] > Versions of packages runit recommends: > ii runit-init 2.1.2-19 > [...] > -- Configuration Files: > /etc/runit/3 changed [not included] What does this mean? Is this Debian with runit as the init system and a modified /etc/runit/3 instead of the one supplied with the Debian package? I'm going to make a guess here and say that the supervision tree is not being teared down properly, resulting in svlogd processes not exiting cleanly and producing lots of .u files, compounded with the fact that they are never deleted during rotations because of the fix to bug #878476... G.