From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QAUWBGGQbmLiDgEAbAwnHQ (envelope-from ) for ; Sun, 01 May 2022 15:51:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oJskBGGQbmKEHgAA9RJhRA (envelope-from ) for ; Sun, 01 May 2022 15:51:29 +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 AC6B8A9BF for ; Sun, 1 May 2022 15:51:27 +0200 (CEST) Received: from localhost ([::1]:44656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nl9yv-0006pi-Ti for larch@yhetil.org; Sun, 01 May 2022 09:51:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nl9yY-0006pa-JK for guix-patches@gnu.org; Sun, 01 May 2022 09:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nl9yY-0001md-AM for guix-patches@gnu.org; Sun, 01 May 2022 09:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nl9yY-0000KX-9g for guix-patches@gnu.org; Sun, 01 May 2022 09:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55080] [PATCH shepherd] service: Gracefully handle non-existing log directories. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 May 2022 13:51: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 55080@debbugs.gnu.org Received: via spool by 55080-submit@debbugs.gnu.org id=B55080.16514130351230 (code B ref 55080); Sun, 01 May 2022 13:51:02 +0000 Received: (at 55080) by debbugs.gnu.org; 1 May 2022 13:50:35 +0000 Received: from localhost ([127.0.0.1]:59938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nl9y6-0000Jm-Pl for submit@debbugs.gnu.org; Sun, 01 May 2022 09:50:34 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nl9y5-0000Ja-PS for 55080@debbugs.gnu.org; Sun, 01 May 2022 09:50:34 -0400 Received: by mail-ed1-f65.google.com with SMTP id a1so14014520edt.3 for <55080@debbugs.gnu.org>; Sun, 01 May 2022 06:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=X6b1AjRglfBog/WMFx/Z5FIjkirS+puKBlFNPA9wYH4=; b=qhS1hZPzK2qCqVdiutoE9MNkAqTGFxTPhoPHJ8u7GE2GwTlPDqWsPW4Mi30+79QS9v F6UZ8ydouyGCSHx8hjwL/TeOAJQKMsFcWDvCeeOf3IPUT0fpeA+QOvB5ILLC4bw91TVH r3jntThWMFSibUbneUQi2qLh0iaWKXlXIy6VQkDG5isKmXCxFA6SeFywPqeMQcFXAqJZ yMVD1Ded1RaqduTbRPY3YSjwejtEqENf345eul5/n+IuoSOgR+yJ3l3NTDOlFpjDnf9r uJQEWkalzTqnSlwQR5fWI7epKmnt53UbXqml3CUoOXhcekjNsT3JMJcah0gvQ8mYffL3 Euqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=X6b1AjRglfBog/WMFx/Z5FIjkirS+puKBlFNPA9wYH4=; b=A3QFK5vWvJHiwpQl9ztFKGkQn6vtC5ttAvuuMsDR/tg8DVTFeHu4CrZP5gcRRnejwH 97Tpndu16dnNST3tQsd/WmFoCtWLmZ9KzJcVrNchDu1Y7QB0+BhaVWOZ9YPtwDUTH37g Q4dnubBUxy97QaJWmnhQ4g4nejL3CxOV5Od213Nrei4fPSdOGgOkU1G+UQLHJbrE01x4 oM9yjVOiuGPqvSj6DKSZIVBth5HWpHooXRbr3j7GiBSKarxPvnI1zsVUDqymfTAXCFG7 vQtiKfdG90de521BVHxkqGVmbdnQoxYa/MKb0kP39oBNntYQ/mDuhZHqnn8+Z9fkZJH4 cxng== X-Gm-Message-State: AOAM531GAS/VUPoSrUAENRmEXIyITrXoht06zDeK7WcO3Zx/ykd528Xx bkCbVBMt1OPNgICX4tN+Ngk= X-Google-Smtp-Source: ABdhPJzVBMAgT8XlzBdNMTDIxPjcPYDTvxTkKAgeTgJSZx678NluNKjgzO+RKsiV5MoKvWDNVckD0w== X-Received: by 2002:a50:8d09:0:b0:41c:b898:19a6 with SMTP id s9-20020a508d09000000b0041cb89819a6mr9063445eds.30.1651413027544; Sun, 01 May 2022 06:50:27 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id hy10-20020a1709068a6a00b006f3ef214dd4sm2640474ejc.58.2022.05.01.06.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 May 2022 06:50:26 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Sun, 01 May 2022 15:50:25 +0200 In-Reply-To: <871qxd4bv0.fsf@gnu.org> References: <2e5292c2d45e525aa1b8e4c495704104d4121291.camel@gmail.com> <8735hu64je.fsf@gnu.org> <871qxd4bv0.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1651413087; 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=X6b1AjRglfBog/WMFx/Z5FIjkirS+puKBlFNPA9wYH4=; b=hYPXqat0LQ+Yf6iRFLi1WQlZHcPBNmmxCO2eSVqo3DimJeSkLTnQeK0uanbMiMsphwqceV Kt5Y+4F3K7WSbiZsgugU7M4p0btUEKqUW5syQIAFjndBTxo2hq1m/zIBZIyiY+nSQEGXWp 7IGIGHDVHtabkj1eelMIFCgBReUn1NILIdR0MNDy3LTHZ3xWchoqGh2MWupuYtyd/RE0Xy Idqc6vYzUMflz9VjgdnlOptH0Fj3SCGkeZ3LENr7Lxrjx+WL+2L+plMeMAuhLIMjhzVTn7 bxClnmbbajQClywXLtToigW6AFu9akM3GHEZ6iJPK3fnPU5W0F9cb4/ZStR9JQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651413087; a=rsa-sha256; cv=none; b=fIgTZ6BK55kgEJ6r/PdRA37sOV0sdiERw/ix5DJr+bT36yVSZd1rtajKdXMVLnuafBsId3 Yx/F5Qm0AEQycejt7d/cDB5kYbG+wLcM+/4YOU7mxkpa1h+DdmgQqye5ZDz2uWHhrBrUK2 /EoaJnD9x3Um4dYoN9ODUCelvGCnOENjdiF3SxkULJX2vbnO+HVUKiLqDpmj3m8DBbW42m ItOK4S4lrFXF2k0RNcYMDEtyqFNKtkDhvHGBpHRzKoamB9MaRpQEprETH1GaDPyX1Jh4Pm eyj7ICmhiO0cUDzMt7Z35XASi6ifJJRJVfQUQomjzS/B8ZOAx+AV7duIFwsWbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=qhS1hZPz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 5.51 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=qhS1hZPz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: AC6B8A9BF X-Spam-Score: 5.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: tBA7ClReOgc4 Am Sonntag, dem 01.05.2022 um 15:32 +0200 schrieb Ludovic Courtès: > > > > > Did you encounter this issue while working on services? > > > > > > 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’s why I > wonder if it’s shepherd’s job to do that. Hmm, it might not be. Still, I wouldn't like shepherd to fail in such a weird manner if the log file can't be created. Should we write a warning to shepherd's log and redirect to /dev/null instead? Should we just kill the service?