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 ms5.migadu.com with LMTPS id wP53ACbCTWMCBAAAbAwnHQ (envelope-from ) for ; Mon, 17 Oct 2022 22:59:18 +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 UPeeACbCTWNARAAAauVa8A (envelope-from ) for ; Mon, 17 Oct 2022 22:59:18 +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 AA8DA3C92B for ; Mon, 17 Oct 2022 22:59:17 +0200 (CEST) Received: from localhost ([::1]:55406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okXCe-0000uM-SI for larch@yhetil.org; Mon, 17 Oct 2022 16:59:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okXCR-0000tf-OK for guix-patches@gnu.org; Mon, 17 Oct 2022 16:59:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51159) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okXCQ-0000Xm-HO for guix-patches@gnu.org; Mon, 17 Oct 2022 16:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okXCQ-0000I4-Cn for guix-patches@gnu.org; Mon, 17 Oct 2022 16:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58590] [PATCH 1/2] services: nginx: Use nginx-action over inline gexp. Resent-From: EuAndreh Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Oct 2022 20:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58590 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58590@debbugs.gnu.org Cc: EuAndreh X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16660402881054 (code B ref -1); Mon, 17 Oct 2022 20:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Oct 2022 20:58:08 +0000 Received: from localhost ([127.0.0.1]:50237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okXBY-0000Gw-9E for submit@debbugs.gnu.org; Mon, 17 Oct 2022 16:58:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:56976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okXBV-0000Gm-R5 for submit@debbugs.gnu.org; Mon, 17 Oct 2022 16:58:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okXBV-0008Q4-Iw for guix-patches@gnu.org; Mon, 17 Oct 2022 16:58:05 -0400 Received: from box.euandre.org ([46.101.160.115]:43225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okXBT-0000SF-Ld for guix-patches@gnu.org; Mon, 17 Oct 2022 16:58:05 -0400 Received: from authenticated-user (box.euandre.org [46.101.160.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.euandre.org (Postfix) with ESMTPSA id 18F25FC4D1; Mon, 17 Oct 2022 17:57:30 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=euandre.org; s=mail; t=1666040252; bh=dBRDv4b9S9pHnPHWnei+med3CGoa99o9ZM0A/FAqZl8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jj/dLta1zX+kb9zTjetUbjQ2wRhxow+pWgrfAATyBerp0/A4OmJpLR+prYxaaDoPo 1XtbYdEuZYa/0WV70EM36Ycf7bEZIXuD+6m8YMa1Y6U87RtPjgcfR9ueGKxHRW7roM o1DmeDvsgAGQKWj4R4O4tz8FELUwdTKNvDx68AFezdRNs8nw0waaxYeKuYodsJoHfI iVQ9MOgxEgd30UU6Hhb6lSTiP5Xk5GT4W/WYrUR3XyOmWYbW2rjz9yHvDlo1iuE4oh m6geqznFaVwgUpfzDgnLL7y8rXE6+F1c6UnXRy+KjP9CAQsQUhFfWVpxzwrGq0TGzF nneh49wQeXlJw== Date: Mon, 17 Oct 2022 17:57:18 -0300 Message-Id: <20221017205719.5704-2-eu@euandre.org> In-Reply-To: <20221017205719.5704-1-eu@euandre.org> References: <20221017205719.5704-1-eu@euandre.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=46.101.160.115; envelope-from=eu@euandre.org; helo=box.euandre.org 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: EuAndreh X-ACL-Warn: , EuAndreh via Guix-patches From: EuAndreh via Guix-patches via 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=1666040357; 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-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=J+jnSyI0zViQhXjDAtba/glu38qvE1FzIQYODM1PnBw=; b=UB6b1FCqvkPpKJ4YydaonDWLI6LWMX45JOch8frK/WIhydI1m7UKkmT3M0kPMYTZzY4Oc1 JnmrstPF1gXeO/hmtET33/J66kw0axM4t2I+mJw7ENDktJm+O8LtpSBdg7bmVM/7LWDk+M KCZiiuaoMDcLXRyVNNCWyFuxJVwWz72l1pEDgJHEXoKn2n9O+n+UObs5EqqIvPn4VQKAVr ZdhJ+vSnUqnBr/2ESRtDvRpa4T5CLt6ThA6NBYwA/wubrSlgHQ9ySxFRZxKzl3iCfsKb0w 359VNbd0v1M/F51kwK8hJdj7Aak3D4JduAp+bdbnrrOVYeuNQqDUIAauq776hQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666040357; a=rsa-sha256; cv=none; b=SA2PF1DMkdk6WswaofjSf+/C8PbBUiG1AFCimfgFlXuYKPNHJZ+/eYRU+U10OJsKk6xpp8 xUB9oN4Wn0AnTd63oroL3da6qOPReRavejiTPxVXdIc/sRkROyHOq+WfK4zql3GzzUuS4c DSKYlb98u89AfYpIWJh0Kx+LDD7eqRmPHHuKITBx1N5Q9sZrq6aHX1bi9kTf2XgJh44RlA Ftk5Fkg11msEbyG0Rb7ckRz0Nyh+MzMXa8t0216/15k9kRXahO88H5wWnri88YhSTYmMeo TkNF7ljrj411yFUJGocLnclYeGTLLLQiknUhclU+XjySKyPmlnAQqpRQCmAc4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=euandre.org header.s=mail header.b="jj/dLta1"; 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: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=euandre.org header.s=mail header.b="jj/dLta1"; 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: AA8DA3C92B X-Spam-Score: -2.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: jVFvaXu/r1PN * gnu/services/web.scm (nginx-shepherd-service): Use the simpler "nginx-action" helper, for the same reload side-effect. --- gnu/services/web.scm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 227a577de3..7fde8824b3 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -820,13 +820,7 @@ (define (nginx-shepherd-service config) (shepherd-action (name 'reload) (documentation "Reload NGINX configuration file and restart worker processes.") - (procedure - #~(lambda (pid) - (if pid - (begin - (kill pid SIGHUP) - (format #t "Service NGINX (PID ~a) has been reloaded." pid)) - (format #t "Service NGINX is not running.")))))))))))) + (procedure (nginx-action "-s" "reload")))))))))) (define nginx-service-type (service-type (name 'nginx) -- 2.38.0