From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4Mi1IyCMbmJpKwEAbAwnHQ (envelope-from ) for ; Sun, 01 May 2022 15:33:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AJS2IyCMbmK9EQEAauVa8A (envelope-from ) for ; Sun, 01 May 2022 15:33:20 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3F71B28ED6 for ; Sun, 1 May 2022 15:33:20 +0200 (CEST) Received: from localhost ([::1]:40554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nl9hO-00022D-Ug for larch@yhetil.org; Sun, 01 May 2022 09:33:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nl9h8-000225-If for guix-patches@gnu.org; Sun, 01 May 2022 09:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nl9h8-0007ve-AU for guix-patches@gnu.org; Sun, 01 May 2022 09:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nl9h8-0008IS-3f for guix-patches@gnu.org; Sun, 01 May 2022 09:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55080] [PATCH shepherd] service: Gracefully handle non-existing log directories. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 May 2022 13:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55080 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: 55080@debbugs.gnu.org Received: via spool by 55080-submit@debbugs.gnu.org id=B55080.165141196731871 (code B ref 55080); Sun, 01 May 2022 13:33:02 +0000 Received: (at 55080) by debbugs.gnu.org; 1 May 2022 13:32:47 +0000 Received: from localhost ([127.0.0.1]:59917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nl9gt-0008Hy-Ce for submit@debbugs.gnu.org; Sun, 01 May 2022 09:32:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nl9gr-0008Hm-8r for 55080@debbugs.gnu.org; Sun, 01 May 2022 09:32:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nl9gl-0007uK-He; Sun, 01 May 2022 09:32:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Gyts3KdKjVl6tIW4VVtUCh1YQ+3JIeHUzVkoHRAuD40=; b=FjP/6JWWQH7SOQts0u/9 folucenVOK369lRL5txJrOZER4fhaumX0CjF8mGMERLBFlHQmVL+7ok0gPpoBMLW3kqgu42OYv2nc /fEX6Zci+9A9+dLCEcHpHhODq455/3vtS1xVsVMTRt3lbPE/QgKOt1vuDPC3Gn3nK+d0SNvs2BA85 2b+HuoL0CcgX3nq7rLzaucjodpqb22msQm3Y+E5dzgPrRY6e11VvIPcjrEih6L4BofkQCwAPmkI/e 4mXo/v7Ou3WXbn8IAnAmXfBf13wzpwXqTA//+nG1xxWO/ySvqIe/63vPmSyhD01Vt5bpddJUiu99h 3B1EjWMqf49+9w==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38904 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nl9gj-0003FJ-49; Sun, 01 May 2022 09:32:38 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <2e5292c2d45e525aa1b8e4c495704104d4121291.camel@gmail.com> <8735hu64je.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?UTF-8?Q?Flor=C3=A9al?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 01 May 2022 15:32:35 +0200 In-Reply-To: (Liliana Marie Prikler's message of "Sat, 30 Apr 2022 16:26:29 +0200") Message-ID: <871qxd4bv0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651412000; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Gyts3KdKjVl6tIW4VVtUCh1YQ+3JIeHUzVkoHRAuD40=; b=bbBRnHUUwuIjicbZrtFSh2i29bGgkzh+QcxF+9KT8aaI2xM7193QF4fWiT2C8r0qJsE0Qw vgjjXbK3MueGDPnxg3wtyUL45jlhOEGC/vLH4gErLObfOAgGuB6cMho9FMdXQ1R+4Nf03u 2UXVOu3ZA4l7d9lMJPwh9JEVGaYYh1mTgXH30A+jIaUDWY8plQKmlSTKzEJk+couh17Weh 3U6CvfKhEzsr5X+qS0ZuvbeIXwEuU6Y4DtcIiFd5Jp0ojZDQEb6Brk62aTf0kuKvKqVYEH m/Z8t6Pdz1gq3WN1dmjgY8NUTHWWv9q2bisPBM87YAL91HB9oHeS+rhcnfT+Iw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651412000; a=rsa-sha256; cv=none; b=ROrxdGE9wwvnxgsi03q6/hbgiNtLuC2VKKzvZpjOKBnMjBXCjpyodr8uUkX8IjVxen+oTI PudrR2VYcp0dPmBF1ZRK0guLlEssyCVoDMhVgXL6CGw+B2bob7C6rV9p4OFcXBrfrwYvj+ 26uC21TC+NVR/qTicoK0eMQ6tVl/Wm7Da9NQVb8Z7tw/ogi4ZNJEtBi7scI1jg3MYkzAfk XtoDZcz5ZvMCotq938/icfLSh1TySuZSYJA/+dd3GxUhWazzrRChxvOqw+xbEgbjKJX8Q7 13ShRcSi6xZiYMH/lyg6DsyhVyieGP/Y8uZ3x0LXNOpYmUy6ojkLlzww37bruQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="FjP/6JWW"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="FjP/6JWW"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3F71B28ED6 X-Spam-Score: -2.39 X-Migadu-Scanner: scn1.migadu.com X-TUID: qpQ3+J7mI0P+ Liliana Marie Prikler skribis: > Am Samstag, dem 30.04.2022 um 16:15 +0200 schrieb Ludovic Court=C3=A8s: [...] >> Did you encounter this issue while working on services? >>=20 >> Am I right that the Shepherd 0.8 had the same problem? > It might be, I don't know. I've encountered this for non-existing log > directory, so a reproducer would be setting #:log-file to $test-tmp- > directory/does-not-exist/log and check for each service. Usually /var/log and similar directories are created not by shepherd but by Guix System, the distro being used, or whatever. That=E2=80=99s why I w= onder if it=E2=80=99s shepherd=E2=80=99s job to do that. I was asking how you encountered it to better understand in which circumstances the problem can occur in practice and what the failure more is like. Thanks, Ludo=E2=80=99.