From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KCCvFzVwf2XMhAEAkFu2QA (envelope-from ) for ; Sun, 17 Dec 2023 23:03:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mIw5EDVwf2V6dAAAe85BDQ (envelope-from ) for ; Sun, 17 Dec 2023 23:03:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=V16z9vJe; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702850613; 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=MzFnIJYDlUVJCxhOHoZID3WI04R0h5IaOePEqDA7v/Q=; b=q9965BAUxUizfZ1r8nN+MgcYJgbdLnRrrdskMzr30uNWMnPC7RuwwQgYoYz823wRE/WDG9 FunB3IViXp301aBxPyPXy8VnY/PSRhYyHwyoo4kc+uEIbxNHh5csECxrpqyidezksotZZn v6H8KfCMFnDzBx/ffJpvkBTnAhkH/nlmPA8V8QqugV4PNovsfzreexVkBqOOigigvMurgO Joi69vUo9eNYdcuBWcUr+aF1vSmxqhSu3j1nEBzpHukSvbhUGxnga/Ta0nxI6JZopfEdtv 4S98oCNUMJx6IMOnSzFchgdWmlYEaYJYXqdn3f2RN1CA77jJbp+soqlBPHEZHw== 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=V16z9vJe; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702850613; a=rsa-sha256; cv=none; b=Ck0HXWGlQKqutCd6Yjh9JBk7QMEa4pBXzEMausbGeOR3pOeVLYdRFstYfpC/It2jevxErt 9xeX4O/5q/XsJljT3ep1tKoBk5+BmUdCA9Yf1KK6HN1UHMRjzZso2UYo7YMZhIAyNDcWfA ui93PBlbFaXRzHFIm/JDuusWD0te9EDqJ3hnsYNEjEuiOqZGDETGpbeu/0a2H4gMkVJWjM 96CXAXRWQyaM66vvF91W/GQIh14deZTAThwPhpJqwx14/VQcQV9r5KR6hzJ3XgjQUcTjCK ITgyj3XyNaSOq3id8FNtPqjvl1otJzTmUoGbLW3Z3G8rQnj02ccaU9+30yXeag== 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 E5B72260FE for ; Sun, 17 Dec 2023 23:03:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEzDy-0005Vm-Hl; Sun, 17 Dec 2023 17:03:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEzDx-0005VS-48 for bug-guix@gnu.org; Sun, 17 Dec 2023 17:03:01 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rEzDw-0002u6-Rz for bug-guix@gnu.org; Sun, 17 Dec 2023 17:03:00 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rEzDy-0005NK-AR for bug-guix@gnu.org; Sun, 17 Dec 2023 17:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#67802: Shepherd is not able to run simple networked programs as services Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 17 Dec 2023 22:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67802 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Lars Rustand Cc: 67802@debbugs.gnu.org Received: via spool by 67802-submit@debbugs.gnu.org id=B67802.170285053420576 (code B ref 67802); Sun, 17 Dec 2023 22:03:02 +0000 Received: (at 67802) by debbugs.gnu.org; 17 Dec 2023 22:02:14 +0000 Received: from localhost ([127.0.0.1]:59106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEzDC-0005Ln-5s for submit@debbugs.gnu.org; Sun, 17 Dec 2023 17:02:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEzDA-0005LY-Hb for 67802@debbugs.gnu.org; Sun, 17 Dec 2023 17:02:12 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEzD3-0002RT-Ox; Sun, 17 Dec 2023 17:02:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=MzFnIJYDlUVJCxhOHoZID3WI04R0h5IaOePEqDA7v/Q=; b=V16z9vJeseUhX0Lo5Rsm YCEw1KVg6P76OQG2sHd1XM+nrXArkihTXQfeO0g/nw45CnZilXwyWpEihw+5kl9g3JnwE25niuL8R QhWP9h6KW36GJEr0ID1dXUAn+1RM/Jq9IRDh71DX1aXOec2HFow3dt0LtCniBIvgd/wNusOcreQil OBkrNdrLpB81LLZ9X49xRcrcRJzrguP2t3U4f6Lv/xdQvyTq6SNoqsfzP6Yid7nav23b7ChTgjD9E 22YB2Ui+pNTJbnfAMniriydAMMXdGhVdm6CzRVHSoJD+96J/tkamu/xiwYjXPKfr9L/EFFEJJ+l4P zNoDXpBIrvFO+w==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87ttoj1gdv.fsf@yoga.mail-host-address-is-not-set> (Lars Rustand's message of "Fri, 15 Dec 2023 19:00:45 +0100") References: <877clje05x.fsf@yoga.mail-host-address-is-not-set> <87ttoj1gdv.fsf@yoga.mail-host-address-is-not-set> Date: Sun, 17 Dec 2023 23:02:03 +0100 Message-ID: <87le9sqyhw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.82 X-Spam-Score: -5.82 X-Migadu-Queue-Id: E5B72260FE X-Migadu-Scanner: mx10.migadu.com X-TUID: BpGLHD7v22kX Hi, Lars Rustand skribis: > So, I figured this out. It had nothing to do with networking even though > it looked like it. The problem was that I had cargo cult-copied a > #:pid-file parameter from another service, believing that this was just > a path were Shepherd could create a pid-file for the service, but > Shepherd was in fact expecting the program to create the pid-file. So > when the program did not create this pid-file then Shepherd killed the > program. > > So the original bug I reported is in fact not a bug at all and can be > closed. However, the error handling in Shepherd could be improved in > order to make it more clear what is happening. Good that you found the issue! I improved logging for this particular case as a result of this report: https://git.savannah.gnu.org/cgit/shepherd.git/commit/?id=3Dace4a3b2dba43= b826640d5c1ca970f9040d27416 Thanks for reporting it, Ludo=E2=80=99.