From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 GNJwGFHZDGMnawAAbAwnHQ (envelope-from ) for ; Mon, 29 Aug 2022 17:20:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uN44F1HZDGNnSgAAG6o9tA (envelope-from ) for ; Mon, 29 Aug 2022 17:20:49 +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 EE8AE155B5 for ; Mon, 29 Aug 2022 17:20:48 +0200 (CEST) Received: from localhost ([::1]:51950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSgZD-0008TR-HX for larch@yhetil.org; Mon, 29 Aug 2022 11:20:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSgYV-0007xs-7X for guix-patches@gnu.org; Mon, 29 Aug 2022 11:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSgYU-0000e6-VD for guix-patches@gnu.org; Mon, 29 Aug 2022 11:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSgYU-0003Qo-R5 for guix-patches@gnu.org; Mon, 29 Aug 2022 11:20:02 -0400 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-To: guix-patches@gnu.org Resent-Date: Mon, 29 Aug 2022 15:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 55080 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: 55080-done@debbugs.gnu.org Mail-Followup-To: 55080@debbugs.gnu.org, ludo@gnu.org, liliana.prikler@gmail.com Received: via spool by 55080-done@debbugs.gnu.org id=D55080.166178634913092 (code D ref 55080); Mon, 29 Aug 2022 15:20:02 +0000 Received: (at 55080-done) by debbugs.gnu.org; 29 Aug 2022 15:19:09 +0000 Received: from localhost ([127.0.0.1]:33416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSgXd-0003P5-BI for submit@debbugs.gnu.org; Mon, 29 Aug 2022 11:19:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSgXb-0003Os-P5 for 55080-done@debbugs.gnu.org; Mon, 29 Aug 2022 11:19:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSgXW-0000ZZ-J2; Mon, 29 Aug 2022 11:19:02 -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=UiJvJsZaNLlASO5UeoslNqAoojxnxXYzKq4IQB4JYqM=; b=WuXOtt1fvlggiIbGO6Kn oMwR4LD2zLHSMv7oMKh47ryvw6As6idtycUooXUnzkcpTxspnFM1oqm0ElRD5wN+N6XzJ5R3VEDuy 9O9Pf7IBjohcbzh1LDFiX4vYKlK35mOs6490YeGKtyHdhxXWMdErPLXETPV2V10cZibwmtD/APyT0 MJbfUxeOOXajA1MWgVb2sbxFxOoX2WTX0V6cjJJRXfVfQgGOvW5GeQyp6/SV8KI3YZJvzKXjeDzCD mZxK/+Mcy8e0LjANssh8Ka6dyhSBcHRaiYNFaWdmrzESt9m+hlOdvWQAdapKnHZwwJY2gvv/eHo0y ukCfBdsqd9km1A==; Received: from [193.50.110.104] (port=44276 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSgXW-0005UD-62; Mon, 29 Aug 2022 11:19:02 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <2e5292c2d45e525aa1b8e4c495704104d4121291.camel@gmail.com> <8735hu64je.fsf@gnu.org> <871qxd4bv0.fsf@gnu.org> Date: Mon, 29 Aug 2022 17:18:58 +0200 In-Reply-To: (Liliana Marie Prikler's message of "Sun, 01 May 2022 15:50:25 +0200") Message-ID: <87tu5v5b8d.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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=1661786449; 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-to: 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=UiJvJsZaNLlASO5UeoslNqAoojxnxXYzKq4IQB4JYqM=; b=NOsHyfryYsGYYav0QLSzuY6aNph2ZFm9BJWXh5VV5vhABGvb5hKfsDN7G38LvkPjqYlDm5 MkBCpDPHcTSEqzWrobYnolzpcc82ev5g0jtvch+2QyrmiULf7dGpU3rPx+AbaqFaHjr3/Z bxuqtn+JPq3TGV/vzTpRz9MLclkSxo9ZsTVow9JjO9osRHvB9B/XuWP/LC1o3Rl6c0iUxg 2rn6CBheu/zzNwwPqB+NFxyi8Y2qcjG1FHYhxedSsDO0bf5AmCRSFN9l91rr/c1LDfBlr4 r/eteKY2YmEh0xcV1GKa9BgFVPuYdGZ1lz5mPL7ppDyOx8KI9rvKnimmjB3mHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661786449; a=rsa-sha256; cv=none; b=fU8na1gUlsXQDYzSH33wLBIdLwLKQOZ5TbwJrHka4Z2Jm3r646efIhbx0xwYDctIgHLTEn mGL0UeKecKb+9bEOqh/HYNT4z/vlWWiyFXnM4GRhUvHfajtbxNwaGcqDEcP5EP3vhHA728 Pv8o4kaNaTpNn4spfTkMcddILZ9CgqUxCBc8fyZyZNx42ATYF5aknIErG2gXqhK2zyomUB U8Dw9FXDdO3p3cn8p6+0bq31Kt9j4eSNgoGscZGuWhgU9bd99FjaOhmYHbUI+TI46Qh2k9 dJzLKNdR2H7JHRPExhVLaArkPwiWowYKBNGbAt/vMqVTYv8CbV8jkCsp4jZUlQ== 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=WuXOtt1f; 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: -3.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WuXOtt1f; 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: EE8AE155B5 X-Spam-Score: -3.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: SZZx80A6FnHk Hi Liliana, Liliana Marie Prikler skribis: > Am Sonntag, dem 01.05.2022 um 15:32 +0200 schrieb Ludovic Court=C3=A8s: >> >=20 >> > > 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.=C2=A0 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. >>=20 >> Usually /var/log and similar directories are created not by shepherd >> but by Guix System, the distro being used, or whatever.=C2=A0 That=E2=80= =99s why I >> wonder if it=E2=80=99s shepherd=E2=80=99s 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. I reread this thread and I concur. Patch finally pushed as b0d3f625543bcb32e94167c27cba153f9fc03acd. Thanks, Ludo=E2=80=99.