From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id LV2qAT3WcmPSLAAAbAwnHQ (envelope-from ) for ; Tue, 15 Nov 2022 00:58:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8DPWAD3WcmPPLAAA9RJhRA (envelope-from ) for ; Tue, 15 Nov 2022 00:58:53 +0100 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 A51633C233 for ; Tue, 15 Nov 2022 00:58:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouiqV-00039k-AC; Mon, 14 Nov 2022 18:26:31 -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 1ouih4-0005zK-Nh for guix-patches@gnu.org; Mon, 14 Nov 2022 18:16:47 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouP1y-0005uW-L6 for guix-patches@gnu.org; Sun, 13 Nov 2022 21:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouP1y-0001Tb-Cs for guix-patches@gnu.org; Sun, 13 Nov 2022 21:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59197] [PATCH 0/3] Support 'herd configuration SERVICE' to view config file Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Nov 2022 02:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59197 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 59197@debbugs.gnu.org Received: via spool by 59197-submit@debbugs.gnu.org id=B59197.16683921675605 (code B ref 59197); Mon, 14 Nov 2022 02:17:02 +0000 Received: (at 59197) by debbugs.gnu.org; 14 Nov 2022 02:16:07 +0000 Received: from localhost ([127.0.0.1]:48723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouP15-0001SK-AP for submit@debbugs.gnu.org; Sun, 13 Nov 2022 21:16:07 -0500 Received: from mail.envs.net ([5.199.136.28]:34264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouP12-0001SB-TW for 59197@debbugs.gnu.org; Sun, 13 Nov 2022 21:16:06 -0500 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 35F7E38A0033; Mon, 14 Nov 2022 02:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1668392164; bh=3K2jVYiu1/y/HkR+st5hq9+3x8rS0Wnr0vfwRpBCjrc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ljfClAlnQg5nNWma+GpfEH+6gaHND+LdqHdAxOS7hgxvw1h1I1hSed03Kf/ATO7oe /MLQ+s8p6BTIu8EwAjL17iTuhxq1IvdstpkDG2YQ0Jpnt0l1XR3vPTL4rE6DFNTw4O Yj3HQITQg+87T/XpyLUlXDApkXdmtnvYzDvmvLsMdmPUK/zyyVlD2siIUH1x1aMmrb pXpkIG/zoNNzTQcGsKh1a8mJcfRIswK+M4xXVoMOo3IZ5W/PcMBygm+bW++OBW9Z49 Hy2FYltSXAbyXd/sHP/2K/6f2/39PnWodDdztwMcFkWbN3GPWigV8BnRHLykGrDwK1 JQCucigyuzKMtOZi4c8HsY/lVFNGcKxQ1qOA7oQyyo/HjMFAEcB5rOr3ZH6YubH3g5 0cdncGdo2wd3BmfVEeRD1bWCiVWb916T+uoMjXIrWlqggyuOVx+v30cPdcmEw61b9/ 35B+Zl08ga6E70BO0tLbMPCajDYQnaAUm1MIpSSD+dNsXIhfPye+EOb0CHTzE+6QdZ lxj6Mu7J9miFiuTwjs4a/LSe3ctWiLm57hbs39cdnJE8icmX9vEmaPbs+ndoertX1w WNE0QKvJr8+Hv4yGFGxcOtwMa8z/H/9gN8jTBwt1c1adNaM6730ZWRP1hXIK5ind5L ESs7zidzsgPM6R6b68Pcjgi0= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lGL-r63m4fs9; Mon, 14 Nov 2022 02:16:01 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Mon, 14 Nov 2022 02:16:01 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 5694ff69; Mon, 14 Nov 2022 02:16:02 +0000 (UTC) References: <20221111181131.4171-1-ludo@gnu.org> Date: Mon, 14 Nov 2022 10:16:02 +0800 In-Reply-To: <20221111181131.4171-1-ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 11 Nov 2022 19:11:31 +0100") Message-ID: <87a64ub7rx.fsf@envs.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: , Reply-to: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-ACL-Warn: , =?utf-8?b?5a6L5paH5q2mIHZpYSBHdWl4LXBhdGNoZXM=?= From: =?utf-8?b?5a6L5paH5q2mIHZpYSBHdWl4LXBhdGNoZXM=?= via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668470332; h=from:from:sender:sender:reply-to: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=3K2jVYiu1/y/HkR+st5hq9+3x8rS0Wnr0vfwRpBCjrc=; b=r2lIVlWwTF3gi40xuLJwtUmId83f8fnqAgjDKrKui7GkUNbljzImFqIjw+z0/xASLhj89W HFsZPLoRuX839XuSQOnpMiOkEIYYhFXdXHmafNpg5fpqN4KwTwDj1e37trVa59KvUeRLwx qAgZToaUBUeDl5xi1oEGEjcC/AFw1TwA2yKzfiwVx9p6PcrEYf/K5txxKPj7sTJ/tDwLPb G0jux+WBdKZOYaf41B/JjFS2IPBibU60s7ecZ/aIx9up+kui9oLMFl/LFma9laja8TXMvu bZOb2u3jkyZIkkklrkF2Q8F1zUv85NYz7KssmDEjsVLPiImJ1uMzsgxsdRJMsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668470332; a=rsa-sha256; cv=none; b=I/FMPyg6sy+pcFc90eCr6ahMXlXEQxL4HpVyMV12A35ZV0Fpe3c0DvVFJyppigcnBw1kbW 4/TubuKGLIEPdhmTQ/e2ufX8DRioaWno/c/RDM957vyeP3VxWLmVMZL+USyfYwzgqlLo8w 0VYly+wnb0tL9YyNn+0RSxfb8j/MQAVtUabM6P1ibvEMM9LyDTWBPNZWeGUecZvCykiGrk oiqGebhG4+TVBklbhSGKpvG0WpfoiRVDsxSHFTEe/Zajx8N4y3CS+MjMlLzPX6wjkOlF9B 41so/NDg8Z8nOHeApmJpSoR0kUTVDGreSZb9jfWSezZwNTYVf2xPHAKyOme2bw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=ljfClAln; 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: -5.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=ljfClAln; 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: A51633C233 X-Spam-Score: -5.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: aMmpaUBGVcw3 Ludovic Court=C3=A8s writes: > Hi! > > So far, to view the config file of sshd, elogind, etc., you'd have to do: > > cat /proc/PID/cmdline | xargs -0 > > or sometimes: > > cat /proc/PID/environ | xargs -0 > > and extract the config file name from there. > > With this change, you can do: > > cat $(herd configuration elogind) > > or similar. Simple but convenient. > > This patch series adds it to a few core services. Adding it elsewhere > is left as an exercise to the reader. :-) Look great to me, thank you!