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 30222 invoked from network); 7 Mar 2023 17:17:21 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 7 Mar 2023 17:17:21 -0000 Received: (qmail 664 invoked by uid 89); 7 Mar 2023 17:17:46 -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 655 invoked from network); 7 Mar 2023 17:17:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678209437; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=mkTdZYxBNzBBZbm1QfffihXcaFlcUhRGY/Q1nrzcGPM=; b=pwycbBVy0kJTM4ZKob85w/gaMxuMzT2LglPrTYpg6XKnLFAcI3zVHpwsXHjuq9GuJT 30RPHLoRkf8KmnX3K248O13Rwmvz7/vvFxT9NKb6oAxsliO8r+1zT99hm6Uzh2SFU5Ep 6HpulYAsL4/fH+bVJbSWvZJ6xVprr+wzNPkf+16P55G08o+jKfcHTM14f9jFsjQgE89Z v8q+zhz46lrGsq6zOyQzheEHXkAZh9jD18QVOxF1UiNOmKhRFqOFvopa1w6HXGKZ2ehX zpt81d+5QxntbwVsDkLAUwl6jy40NCfvHO0KvOuxiBNjVeexSgDIeCrCwSTfAOW58tKy /nLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678209437; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mkTdZYxBNzBBZbm1QfffihXcaFlcUhRGY/Q1nrzcGPM=; b=6+J/UJfW0dvAWx+F5/MlB6WjV+tC15pdp0t0jozxB+xk9bi58I1DznMeeT6xI8nYfA voG4bTx5rk4M2gV7d6+ARpzcpvGMHalIC4JHzpDsMAE7mRtzViY4DrAAYmvml1zSmYxp 8CHZSJPVZ7tXB4EkM69WVFJfbjrPHoOLwS+L6aHBeNLoK8Gqg9IKkKU1ZsV3GVWW20u4 9/saukMY7L/45Yb3mtXhQkPnpDQtqp2nyMH84/uYoildVLv5HvX5udFDq1/uSrdj+rNn hDp1SSII8ikQljeHoM1KUi7T4AF3IFc5pVbBpVLsSQQQPW7NR9JxMPiO6j/1Xc9KwNVd CZpg== X-Gm-Message-State: AO0yUKVvcIDkBUvIAStrBx4tJM8JXh6dQV5VsPqLjkpc9MaW/RmUNBn8 rSRK+toOdrLDIlUUR3u92wF7Czu5MFQqaEhZ5eE= X-Google-Smtp-Source: AK7set+ney20qb6T7hFMVgJiQzHACqJtTGyxmCIjCe/+qNurZvqnLeV299RnhLaKa+JBC91LLQt3SSrmFZrUG3EIGrg= X-Received: by 2002:a05:6808:b2a:b0:384:893:a924 with SMTP id t10-20020a0568080b2a00b003840893a924mr5067851oij.3.1678209437523; Tue, 07 Mar 2023 09:17:17 -0800 (PST) MIME-Version: 1.0 References: <87edq0suut.fsf@telent.net> In-Reply-To: <87edq0suut.fsf@telent.net> From: Carlos Eduardo Date: Tue, 7 Mar 2023 14:17:06 -0300 Message-ID: Subject: Re: s6-rc how to log oneshot services To: Daniel Barlow Cc: supervision@list.skarnet.org Content-Type: multipart/alternative; boundary="00000000000061e5a905f65295ce" --00000000000061e5a905f65295ce Content-Type: text/plain; charset="UTF-8" Artix Linux achieves this with pipeline -dw { s6-log ... } actual-oneshot Not ideal due to the lack of supervision for s6-log, but it works. Em ter., 7 de mar. de 2023 08:12, Daniel Barlow escreveu: > > Hi all > > I've adopted s6 and s6-rc for a small distro that's targeted at > consumer wifi routers and similar low-powered devices (same target > devices as openwrt) and so far I am appreciating the consistency and the > warm fuzzies that I get from having a supervision tree (and simple > readiness checks!) instead of a folder full of pid files that may or > may not correspond with what's actually running. > > My question is: how should I handle logging for oneshot services? I > have oneshots doing things that might fail, like configuring network > interfaces or inserting modules, and I'd like those failure messages to > go somewhere useful as the longrun messages do. If I just add > a logging service to a oneshot with producer-for/consumer-for I get > > s6-rc-compile: fatal: longrun wlan.module-log declares a producer > wlan.module of type oneshot > > so I guess that's not the answer ... > > What am I missing? I guess I could convert them into longruns that do > the "up" actions then call pause(2), but that seems a bit of a > ... non-traditional approach? > > > -dan > > > > > > > > --00000000000061e5a905f65295ce--