From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14352 invoked from network); 5 Sep 2020 20:26:20 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 5 Sep 2020 20:26:20 -0000 Received: (qmail 4755 invoked by uid 89); 5 Sep 2020 20:26:43 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 4748 invoked from network); 5 Sep 2020 20:26:42 -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; bh=/fu1PGYCp09kIEu59CgV7zSLpIZ7nN/VxI840yUDfsA=; b=RLPkWYTOvkrZaEK/ibruXsx4fPlGH+jMHLHjt+jEdZsunxw69lX6z31XrdtR4fsxpt qV9gZodAD8xLH34MYwkUYXibWv8MxeijGVdEiwKFx0zo5sGxdULmlwHjbuwGV5n386rR oaLkRsdQAHtRYx85YE8ObDGUzLTQOIFYJBUORD0gYmGsahfRLGAyOVXswssu9ei8t+VW 6G69a3PnNYRBwMi0GtLz7ophEO0WYbTrrhJgECIIM2DAptkss8x1J07yWyTMT6bU96Jm BSkgaawuNx1xwDMzWtZRnNcLB/+0wobmF+T6I1940J1gWB8YO5vF8VUtXCe2WoajZphH nx+A== 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; bh=/fu1PGYCp09kIEu59CgV7zSLpIZ7nN/VxI840yUDfsA=; b=YWsUnB2jcyb81akRLV0robYkgksNX5HgOuzqwqFPhIb5B+cuHMCiVP2+cxaEItGS2H tBLXAnDxEXnnMgwq+RsNVCnZANOt8KJEfG2zzWdUpX80cJCvWoX+TOfLPx7U/i72LCtB 6EpQjHNx3JSIMvZ664B2b9nxGD25dsdPyfTjpXLvfbuXygbMCd4mKUxl3lRWMm43Vp78 BqRid4O6e1nPMNuKuM3uNaVzspMufMKtSfWmVNmnPWN4kWjkLmy5i0GmPtBRTv6DCr4Y Hnc6aBMC/VKEZEHwH2WbopnaUuBCsW5f0f9vPMNyYGbhkDil1nXfD1arUApqbKMr0JJ+ Y4iA== X-Gm-Message-State: AOAM532ERrlMc3xkcIaHw6D8neJtyYQ3i/4dAEWX/D7wRTNbLF1FsQED XmRz5HjfbQwtqCTlJqqUHrkbvk0Uu8htaBz8nOgm14SWi7fNRQ== X-Google-Smtp-Source: ABdhPJxMGS2JbuBDK5fAPyyUXJ8SrfTEPGD8GOOooRtZi3178u3P5FLPdL/+phk7FvnStw5+IL/X3MtFpV2ITAnSGdU= X-Received: by 2002:a0c:cb82:: with SMTP id p2mr8153715qvk.75.1599337574847; Sat, 05 Sep 2020 13:26:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rio Liu Date: Sat, 5 Sep 2020 16:26:03 -0400 Message-ID: Subject: Re: Update early logger logging path after remounting root as rw To: supervision@list.skarnet.org Content-Type: multipart/alternative; boundary="00000000000006578d05ae96ccdb" --00000000000006578d05ae96ccdb Content-Type: text/plain; charset="UTF-8" > > Well the catch-all logger is supposed to be just that: a catch-all > logger. That means that ideally, every service should have its own > dedicated logger, typically writing to /var/log/something, and the > catch-all logger is only used for exceptional stuff such as error > messages from the supervision tree, so it doesn't matter that its logs > are stored under /run. > So the best practice is that every (long run) services should have a "producer-for" and an extra "service-log" service? Sounds like a lot of repeating works... perhaps I can use some symblink to do that. It's difficult to do. It's possible in theory: you could have a oneshot > that modifies /run/service/s6-svscan-log/run, replacing the > "/run/uncaught-logs" string with the new location you want, then > copies /run/uncaught-logs into that new location and restarting the > s6-svscan-log service. > Yeah I don't think I'll go that route. Maybe it'll be easier to somehow mount root as rw before the logger starts (if it's actually easier), or just boot with rw root if I really need those logs to be saved. For longruns, unless you want to also restart everything that depends > on the service, you can just bypass the s6-rc layer and directly tell s6 > to restart your process: s6-svc -r /run/service/$sv > Thanks! I forgot that s6-rc actually runs on top of s6-supervice :) --00000000000006578d05ae96ccdb--