From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gPN4IvgIKGSYQwEASxT56A (envelope-from ) for ; Sat, 01 Apr 2023 12:35:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uEw4IvgIKGTLHQAAauVa8A (envelope-from ) for ; Sat, 01 Apr 2023 12:35:36 +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 3EBC5D979 for ; Sat, 1 Apr 2023 12:35:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piYZn-0007jd-GJ; Sat, 01 Apr 2023 06:35:15 -0400 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 1piYZl-0007jV-BU for guix-patches@gnu.org; Sat, 01 Apr 2023 06:35:13 -0400 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 1piYZa-0004sC-R2 for guix-patches@gnu.org; Sat, 01 Apr 2023 06:35:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1piYZa-0002L4-8E for guix-patches@gnu.org; Sat, 01 Apr 2023 06:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62584] [PATCH] services: Add error/success service type. 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: Sat, 01 Apr 2023 10:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62584 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 62584@debbugs.gnu.org Received: via spool by 62584-submit@debbugs.gnu.org id=B62584.16803452538930 (code B ref 62584); Sat, 01 Apr 2023 10:35:02 +0000 Received: (at 62584) by debbugs.gnu.org; 1 Apr 2023 10:34:13 +0000 Received: from localhost ([127.0.0.1]:35587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piYYn-0002Jy-4K for submit@debbugs.gnu.org; Sat, 01 Apr 2023 06:34:13 -0400 Received: from mail.envs.net ([5.199.136.28]:44390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piYYl-0002Jq-Es for 62584@debbugs.gnu.org; Sat, 01 Apr 2023 06:34:12 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id DC56438A008E; Sat, 1 Apr 2023 10:34:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1680345249; bh=VHu9ck+4p0c99gKJyi6g6+dkx+liKU/zEo9i0y9XiYM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=XhDRK1zdvsLd2q7vEzJ1W89PV2N1piddxQFD2algSoU896S7A6HOBxXRM0Iw5V1pW 3DCkUPvEU+v5mfM1nKJtgVNHwqDvrPoAdzKNoBgCZXEvwlPFkMi3Y7JX+Mz2WV0lf1 KaH7xmoObzfGViD0gMfyK9sQ2ezKETC/lPzX5xbkNzkIuBkqfEiOEAjFbdfxcNkGpT shsPSLHuObB5G9UaXHEGVrZk1mjPvxt5QeEGUyKBc6Iybzz/B+oQRjTAdvzuPT3nU8 uFPEknybNaioEDh+vohxKENgcNzYq+XPIj4ekdaV58iSPXC1arFIia6toIT8JC3qjz NL3pIKcVdEhePuvuYWute9NgoXqCQIEekVgErdC497fUfEqqaau/FKgNSZZ1yMGoij uNrHkOZkCCv+7Tg8W2EMh8ji/qr58HzERszB3zHSuSrNxcSD57TJxD4+Sd7lgb+meS 5VqCBDrdMy1SqdYPILco0DzQu/oJ52Ok4S4cQT8QKGQOp9RHKJtnhFPzgQKsA8Y4+N eMNjX3lz1ViDOun6Tn0qfz7Pd2k6+RGxM2Tzd6n4jzWC27GbDM3h1KLicHfiKrcrz8 NHgdeXUCZWvO6gK/43AWF7CuiLKabVjWVrVFWjpQqT/PKXmS4bhBQyR4pMnZjLkOH9 Ay733kpNXp6NpPkCDyWOry5I= 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 88rQHi1fCzA8; Sat, 1 Apr 2023 10:34:06 +0000 (UTC) Received: from localhost (unknown [36.170.59.22]) (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; Sat, 1 Apr 2023 10:34:05 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id f8f2529b; Sat, 1 Apr 2023 10:34:54 +0000 (UTC) References: <20230401072842.13315-1-ludo@gnu.org> Date: Sat, 01 Apr 2023 18:34:54 +0800 In-Reply-To: <20230401072842.13315-1-ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 1 Apr 2023 09:28:42 +0200") Message-ID: <87y1nbevqp.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680345336; a=rsa-sha256; cv=none; b=VgcYD/DVlto7KRGDfFDnJupoR2KT79YXe5U5Yes+brFU4YFHC3hjOpDKFsPg+A+b34AwxA zJ0+2/3iJS33agI1vC3weVzqvml9XR068ghTiTt5kHvTdj5bKmA7mdTQFF7M0co0CQzOGF 47sh2yM9gXaCLnKl7/ANsi5D7Xi642lADXVK3fvkxEVXtb98dJ2aGDtpq3A4Sf4jkbi0wc UfosddcJOGawQKXQKvpRkoiLqAFKl5rJU1xpBeA3ailtCiMEeN6osaPHZaq/EX477hdH2k Bnj7Wm0CmYImiIAaJukK0Ze+vU5ajdQlQQmaG4kao0Ovew7fOh41fCLq4PXrGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=XhDRK1zd; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680345336; 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=VHu9ck+4p0c99gKJyi6g6+dkx+liKU/zEo9i0y9XiYM=; b=CgpYCE3Hc3+WsoR8XFX4oD7+4I0cQ7zivvPVCrgWTIVt0ehNO6wIkDKrujVV60ymak/ca9 jI0SqOITnnIgzCLIGkfX0F3ccTqOmzT8pxlGvjESHlHR/V/kgnKNCivg8d6V2gPELEruqD U3HtZewJpEt92gQUyMFq8b0kpzzLH+ojQ+4ngSBctsq8woLaAhaY1nS5drbMQwQVU/EJRF L2OA1nibMatrbr6GrUQw1FFbFFT8CjWC6HLZQknDagbfdVYmbqBWrPiwfaiqdiRPiMPjd8 cEKxQWN0BNj0Gg+Irv9gyQIeXvliVRFawn1KEOPwpS2130UA9PgFEMn7jaQcVw== X-Migadu-Spam-Score: -3.73 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=XhDRK1zd; 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-Spam-Score: -3.73 X-Migadu-Queue-Id: 3EBC5D979 X-TUID: jcPo4pcTqFi1 Ludovic Court=C3=A8s writes: > I think it=E2=80=99s good to have it by default, but that=E2=80=99s somet= hing we can > discuss. Okay, I don't think so... > +(define (error/success-boot-gexp _) > + #~(begin > + (display "error in finalization thread: Success\n" > + (current-error-port)) > + (sleep 2))) ;let the user notice--all this hasn't been i= n vain How about make the message and delay customable? I prefer "No error in finalization thread: Success", and 2 seconds may not be enough for a slow reader like me! > + > +(define error/success-service-type > + (service-type > + (name 'error/success) > + (extensions > + (list (service-extension boot-service-type > + error/success-boot-gexp))) > + (default-value 42) What are this 42 is for? Otherwise look good to me, thank you!