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=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16128 invoked from network); 5 Sep 2020 20:43:38 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 5 Sep 2020 20:43:38 -0000 Received: (qmail 5434 invoked by uid 89); 5 Sep 2020 20:44:02 -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 5422 invoked from network); 5 Sep 2020 20:44:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=6C0DdIBjDOMykeOW4xbkN6Bb0ymbWJBcshtK19oiUlY=; b=YNLjDrQ6JN65IhxH5egyaORYpxlJznIx6TiR4B4F/9NIkofvaiztw1ariTynHhBmyz rhSEjYU/tcYhYsNOrPxcXYrG8XCZITYFE3K3kIymFErGxnQEvdf2ipmxngFLtxWAKMsG Xl7PnZHLqPcKx9wuVRjeto31bYHYxQuReYi9y++2lhFdmdvMeuJ0r7A4dmbtAEhPZ1Pd wS3MmIfvEh4aOQuVeFua6VKkJ+WlpUJzereo1BS44ziSCnHvf23Ja9+BQwkrrXgun/d0 PBNNS3YZ6Bo7X87Rvm8Aje8wa2mDv2kPfEekx7qa9piFhQeImMNzRP/Y6GywQis4G1JK nWyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=6C0DdIBjDOMykeOW4xbkN6Bb0ymbWJBcshtK19oiUlY=; b=oBskiY4CBXblHJg8RpgJoVWtbHNf2kA7tQ4aAsnfY/78gs1dkxGvW8jqq3pQ1RSIYS s/JnwNdbdaTnp55kvCcjPuwB6nocGrzYj4L+kpOuEK4Ak1e3LVlk9tFX0eliVHQ5af+r pTSQ1p2SxMI03UZvB2QqKvcW23wPoX9zXgNd4AnGTz7IGyUxMoquGZCVaJ94Nya7dPK6 760ot2T5Mi/ZCjBCC4vTFDFeYFcJb9GfW4ZyXnZARMH7Q6I4KLo1vZpqYqWYuQ9tCJcy xaYduUNJwltUM0bSwFGGhvqznbq/HrEl4SSA6dNiktPl5jopKqN9zPbgvEVW9XYVT7wg Rm1w== X-Gm-Message-State: AOAM532AVfnECaRy2uX1TuIqIrt6++Zzd/+phSxTmTDjNASu1vnWB+CR ZMOJ/nn9Vl77/7uw5rV/nMnlRk+QSiA= X-Google-Smtp-Source: ABdhPJyvNEjM9mwuSPIANxLcO/I6WkE3krdfnPSY0+ehuy+iaALrOBEbpjPubZDB/v+XiP8tIeqltQ== X-Received: by 2002:a63:ca12:: with SMTP id n18mr11694886pgi.371.1599338613858; Sat, 05 Sep 2020 13:43:33 -0700 (PDT) From: "Casper Ti. Vector" X-Google-Original-From: "Casper Ti. Vector" Date: Sun, 6 Sep 2020 04:43:29 +0800 To: supervision@list.skarnet.org Subject: Re: Update early logger logging path after remounting root as rw Message-ID: <20200905204329.GA8665@CasperVector> Mail-Followup-To: supervision@list.skarnet.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Sat, Sep 05, 2020 at 11:46:44AM -0400, Rio Liu wrote: > I'm configuring my linux to use s6-rc. It works fairly well so far. One > thing I want to improve though, is that the early logger logs to > /run/uncaught-logs. It's nice to have a log file during early boot and it > helped my debugging easier. But it would be cool to able to change the > location to a permanent location like /var/log after the root has been > remounted as read-write. > > Is it possible to update the log path of early/catch-all s6-log process to > a new location, and perhaps copying the early logs there as well? Or if > not, is it possible to spawn a new s6-log process that acts as a catch-all > logger? Your requirements of saving logs from /run/uncaught-logs and (mentioned later) batch-producing `producer-for'/`consumer-for' files can be automated using slew: . (Other encapsulations of s6/s6-rc also exist, but I am the author of slew ;) -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2022.09.20) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C