From patchwork Wed Apr 30 15:34:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Lechner X-Patchwork-Id: 42182 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E3B5927BC4A; Wed, 30 Apr 2025 16:36:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0EACD27BC49 for ; Wed, 30 Apr 2025 16:36:41 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uA9Tq-0008H2-6I; Wed, 30 Apr 2025 11:36:14 -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 1uA9Th-0008CK-KB for guix-patches@gnu.org; Wed, 30 Apr 2025 11:36:05 -0400 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 1uA9Tg-00087i-UU; Wed, 30 Apr 2025 11:36:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=Kt46toamon8LuAcVmySMz22QlivyXCafXyPNNKU98UQ=; b=GH6Q9WnO8GuMSYra2z2dywgyzy+kbE11jvl6cXmyDgIXFVRfzspXR3dhoiMRCp1N4cKXeljAUiCzH0tQJ8tL5W8rZq9iszAfwwkfwp3IhRsWdrPlduW3B2/IJOCnkyU1PKGswIxMILLusIukbDQWvbm79h8/Y6U7Xh/CSCS/22Ji+k+WGzcClSj4/FDXaMKK2lni+861N/R/jvd9Zxmk5dEOih5b3+soATuEHFxusSumSL+AOgXTP5cA6KOCmMfSAopJY+qA+Bc+Rj6Xx1uxacVKCVzKRN7qNmbnh/A7426ml4WWHt2pLpZ3y2I8pztu7951RanfE69ZZyAUlXMIaw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uA9Te-0002US-GY; Wed, 30 Apr 2025 11:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#67497] [PATCH v2 1/4] In documentation, rename %certbot-deploy-hook back to %nginx-deploy-hook.. References: <87zfyzkkt4.fsf@lease-up.com> In-Reply-To: <87zfyzkkt4.fsf@lease-up.com> Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: gabriel@erlikon.ch, ludo@gnu.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Wed, 30 Apr 2025 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67497 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch help To: 67497@debbugs.gnu.org Cc: Carlo Zancanaro , Bruno Victal , Felix Lechner , Maxim Cournoyer , Gabriel Wicki , Ludovic =?utf-8?q?Court=C3=A8s?= , Maxim Cournoyer X-Debbugs-Original-Xcc: Gabriel Wicki , Ludovic =?utf-8?q?Court=C3=A8s?= , Maxim Cournoyer Received: via spool by 67497-submit@debbugs.gnu.org id=B67497.17460273129118 (code B ref 67497); Wed, 30 Apr 2025 15:36:02 +0000 Received: (at 67497) by debbugs.gnu.org; 30 Apr 2025 15:35:12 +0000 Received: from localhost ([127.0.0.1]:43920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uA9Sp-0002Mu-Ox for submit@debbugs.gnu.org; Wed, 30 Apr 2025 11:35:12 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]:49108) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uA9Sk-0002M8-Jp for 67497@debbugs.gnu.org; Wed, 30 Apr 2025 11:35:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=32oyDPoDHfPfas9 WcaIFANx+YdQzF6gypy3fbmUCGco=; h=date:subject:cc:to:from; d=lease-up.com; b=bDW3NwvzEBy7vKuy2sgdoyZtBzVjxEfX+vsT1hDQhnAkLqicFPQK RncLwk6mCrolTWb0xRPAW83rnt0SoEl54ypa0iWO+9bLUM2BDgFhCTxcoCxC8kQyH2RHm/ D13GGPq5GlHfO+FoB/0WaKXbEqX/w6N/GvhyCQKlMdcp869/8= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id c62308a8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 30 Apr 2025 15:35:01 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 7b88aa02; Wed, 30 Apr 2025 15:35:01 +0000 (UTC) Date: Wed, 30 Apr 2025 08:34:36 -0700 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 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: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches X-Patchwork-Original-From: Felix Lechner via Guix-patches via From: Felix Lechner Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Bruno Victal made that change in commit fec8e513, but a nearby patch will offer the ability to specify a list of hooks. That makes it possible to name deploy hooks after the services they restart. Change-Id: I128f71f2e96159eef8821e21ea03ecf0c1c0a7f4 --- doc/guix.texi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) base-commit: bb8cc412c8fcab613c402e06ae7024d6df5c9010 diff --git a/doc/guix.texi b/doc/guix.texi index 90d90b2e1eb..b48255a16e0 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -35364,13 +35364,21 @@ Certificate Services must be a @code{certbot-configuration} record as in this example: @lisp +(define %nginx-deploy-hook + (program-file "certbot-nginx-deploy-hook.scm" + (with-imported-modules '((gnu services herd)) + #~(begin + (use-modules (gnu services herd)) + (with-shepherd-action 'nginx ('reload) result result))))) + (service certbot-service-type (certbot-configuration (email "foo@@example.net") (certificates (list (certificate-configuration - (domains '("example.net" "www.example.net"))) + (domains '("example.net" "www.example.net")) + (deploy-hook %nginx-deploy-hook)) (certificate-configuration (domains '("bar.example.net"))))))) @end lisp