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 IFUYIgWpmWPtLQEAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 11:44:21 +0100 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 yEYBIgWpmWOjCwAAauVa8A (envelope-from ) for ; Wed, 14 Dec 2022 11:44:21 +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 538182355F for ; Wed, 14 Dec 2022 11:44:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5PEl-00052o-DR; Wed, 14 Dec 2022 05:43:43 -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 1p5PEk-00052I-0n for guix-devel@gnu.org; Wed, 14 Dec 2022 05:43:42 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5PEi-00038L-7K for guix-devel@gnu.org; Wed, 14 Dec 2022 05:43:41 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1671014614; cv=none; d=zohomail.com; s=zohoarc; b=LlJDOGYsTH18hxfpGrj3LQ1tyax2uW4ENx0XADDoLhO2HS3DiClkoRy9u1VaXD2BpHIz7IROn7a/fLXO7YPcqbb+VjtwF9wJNMdWwkwBtpUMueVNCmFxrqC2KnrZGKo1rOfOiehxRLnC5x6mzSzdGL2AAuN4YMV9LiOwVfFPhhw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671014614; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=bVo344+GAoEWMACIvgd/DnDgSut4w+7D6qKfQYG0dU0=; b=T+7uKMneFjwmCzUIvOulNCe3NYTAvScbDzoPnmzrAhM8sv+dUtNc/8FeWSJz2q7nsV1uTLg07D9s8cDxBo+lV0wnox9DUKgm5RM8imcQmb7eldo7JIIqgr2Q7N+GEnRJNq1rQqTedHK5W0wez8OqguaMr7WSn4tbs+5zYSkZZ4Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1671014614; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=bVo344+GAoEWMACIvgd/DnDgSut4w+7D6qKfQYG0dU0=; b=SJv/8WYiwEZXVGXxnFgPik5iq87BvumG+ahpZipLCGhPIA8qgm3Q67HW4Y2RWLHm mQ/P4MzBH57olkMysZBzKl64cH7j6ot/HdH7RozQKdX3xur03/noLTTeIyhOUSaHLgR J5kKkcpWLR9PmWtRossQcXDHKIEW+ubR6FbsZUiM= Received: from localhost (i5E862C1D.versanet.de [94.134.44.29]) by mx.zohomail.com with SMTPS id 1671014612950580.1288385379062; Wed, 14 Dec 2022 02:43:32 -0800 (PST) User-agent: mu4e 1.8.11; emacs 28.2 From: Ricardo Wurmus To: Guix Devel Subject: shepherd: prefix output with service names? Date: Wed, 14 Dec 2022 11:38:10 +0100 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87tu1ytgdq.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671014661; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bVo344+GAoEWMACIvgd/DnDgSut4w+7D6qKfQYG0dU0=; b=JqVOL+A5+XQGRCqFGjGMfwcyEeEqKcYHcX1/nr6f6R0fHgXcjkJ9l1Z1bBaW51lm2wzqSr 42v/h/dpRJvSg3xmLGoh2H8GbBZMdkJbzo1g1QKfbYbhlViuI5d/XevcxsUyBRDKM2rQgx dr91X0SBCdAbBOK67nQcpJHxVtCh17joMMOefwJjLDatDXvugS/hLokEVwUjX1lGL7hLNQ WF4aho3UpXHzlkwouyrzWVjhdLnFhXaB+wxl2hLSB17wIeQh691bpPLeZkRpVhtCh8TNUh jOgUzQanL2wjflLhSL5frvIuFKSD8fTbv8IrNiAMZKjuTi1PCSuIlgjmf4KAZQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b="SJv/8WYi"; arc=pass ("zohomail.com:s=zohoarc:i=1"); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=2; s=key1; d=yhetil.org; t=1671014661; a=rsa-sha256; cv=pass; b=C7HDVxKQ7/Za5NjQIDEC24iuXVNPf1EyXwOi5u3uhWc07puQZr9wtnhSSx3VL3NKFTkUya IpWZ7YBkOE6nHQ2ZwTb7wWTqFsSprCIIP5V9NuWiz3UZ7IDpsS+Ht02qEwDrhnr0AyT/v9 m9TUEaTYStziEldSVLQ2XiZQfsiTKmb9aDE1Mny5YhgAO5OR82J0h0zJtw+o//z5mgrjVv K0MSnHx9DOs2ejk5pP2O4SOjQt7L/ahOvYiHZpwyHE3ZLbH4nWChiyYVbZcNL0xOwA9NX5 X4Rm7unWZmxb96OxDyAORTUXaL/rOaPWu26DtfwvP1V5WFhaKWUWUl8xiyaCnw== X-Migadu-Spam-Score: -1.97 X-Spam-Score: -1.97 X-Migadu-Queue-Id: 538182355F X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b="SJv/8WYi"; arc=pass ("zohomail.com:s=zohoarc:i=1"); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: FsV3dWCoc0ga Hi Guix, here is some output from =E2=80=9Cguix system reconfigure=E2=80=9D: --8<---------------cut here---------------start------------->8--- =E2=80=A6 activating system... The following derivation will be built: /gnu/store/7361cd8aasxwwb93ygdfwjp3ghn06ahb-switch-to-system.scm.drv building /gnu/store/7361cd8aasxwwb93ygdfwjp3ghn06ahb-switch-to-system.scm.d= rv... making '/gnu/store/rp04hkqlzx5j2lhxainsz77vpqqigsjz-system' the current sys= tem... setting up setuid programs in '/run/setuid-programs'... populating /etc from /gnu/store/gq2dvz09wf3sdmvynr2vdzy5wwj7k9fd-etc... The files belonging to this database system will be owned by user "postgres= ". This user must also own the server process. The database cluster will be initialized with locale "en_US.utf8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. initdb: error: directory "/var/lib/postgresql/data" exists but is not empty If you want to create a new database system, either remove or empty the directory "/var/lib/postgresql/data" or run initdb with an argument other than "/var/lib/postgresql/data". Starting installation ... Validate installation settings ... Create file system structures ... Create self-signed certificate database ... Error: Instance creation failed! Failed to start DS The following derivation will be built: /gnu/store/5jx2cj780cqs2pp575rckvrx45j9kysy-install-bootloader.scm.drv building /gnu/store/5jx2cj780cqs2pp575rckvrx45j9kysy-install-bootloader.scm= .drv... guix system: bootloader successfully installed on '(/dev/sda)' shepherd: Evaluating user expression (and (defined? (quote transient?)) (ma= p (# ?) ?)). The following derivation will be built: /gnu/store/q933nvsqjx2f9zra91jbpjvb9x2yf2sn-upgrade-shepherd-services.scm= .drv building /gnu/store/q933nvsqjx2f9zra91jbpjvb9x2yf2sn-upgrade-shepherd-servi= ces.scm.drv... shepherd: Service host-name has been started. shepherd: Service user-homes has been started. shepherd: Service sysctl has been started. shepherd: Service host-name has been started. shepherd: Service term-console could not be started. shepherd: Service postgres-roles has been started. shepherd: Service directory-server-localhost could not be started. To complete the upgrade, run 'herd restart SERVICE' to stop, upgrade, and restart each service that was not automatically restarted. Run 'herd status' to view the list of services on your system. --8<---------------cut here---------------end--------------->8--- You see that there is output of tools that run as part of service activation snippets. It is not clear which service is responsible for any particular line of output. What service produced the line =E2=80=9CError: Instance creation failed! F= ailed to start DS=E2=80=9D, for example? I know it=E2=80=99s the directory-serve= r-localhost service, because that=E2=80=99s what I=E2=80=99m working on right now, but = it=E2=80=99s not clear from the output. What do you think of prefixing every line with the name of the service that is responsible for it? This way we could probably also prettify/post-process the output somewhat. --=20 Ricardo