From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2DwHEcy/KmQ0jwAASxT56A (envelope-from ) for ; Mon, 03 Apr 2023 14:00:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SC8oEMy/KmS0bQEAG6o9tA (envelope-from ) for ; Mon, 03 Apr 2023 14:00:12 +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 CE4875FFD for ; Mon, 3 Apr 2023 14:00:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjIr0-0006B8-6E; Mon, 03 Apr 2023 08:00:06 -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 1pjIqw-0006AX-Rj for guix-patches@gnu.org; Mon, 03 Apr 2023 08:00:03 -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 1pjIqw-00046v-GF for guix-patches@gnu.org; Mon, 03 Apr 2023 08:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pjIqw-0006cU-Bk for guix-patches@gnu.org; Mon, 03 Apr 2023 08:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62490] [PATCH v2 2/2] services: nginx: Add reopen action. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Apr 2023 12:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62490 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62490@debbugs.gnu.org Cc: ludo@gnu.org, Bruno Victal , maxim.cournoyer@gmail.com Received: via spool by 62490-submit@debbugs.gnu.org id=B62490.168052316825376 (code B ref 62490); Mon, 03 Apr 2023 12:00:02 +0000 Received: (at 62490) by debbugs.gnu.org; 3 Apr 2023 11:59:28 +0000 Received: from localhost ([127.0.0.1]:43586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjIqN-0006bE-M6 for submit@debbugs.gnu.org; Mon, 03 Apr 2023 07:59:27 -0400 Received: from smtpmciv2.myservices.hosting ([185.26.107.238]:46042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjIqL-0006b4-G8 for 62490@debbugs.gnu.org; Mon, 03 Apr 2023 07:59:25 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv2.myservices.hosting (Postfix) with ESMTP id 202A120513; Mon, 3 Apr 2023 13:59:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id AE0BC800AF; Mon, 3 Apr 2023 13:59:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KSsGCiCdxVLu; Mon, 3 Apr 2023 13:59:23 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 23987800AE; Mon, 3 Apr 2023 13:59:23 +0200 (CEST) From: Bruno Victal Date: Mon, 3 Apr 2023 12:58:03 +0100 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: <4027e6a1d7a59e11a7f4000b821283a1985f1dcc.1680523067.git.mirai@makinata.eu> References: <4027e6a1d7a59e11a7f4000b821283a1985f1dcc.1680523067.git.mirai@makinata.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-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=1680523211; a=rsa-sha256; cv=none; b=ICn0C0+0EZkGKuLjVsrqfPuc4XUUwVF1kFmSMImlG2EMOQ7rY8uOk12ap0X4rrEzQTghBq oqQMN2PyRCzSjCrUx8tLMFBrt/5F+gzVPfXGO6DkTLcZbFmg7ROzWAQVg1qCAq49xGSmUM mNCIjL/XkutR8caU0lk9uUGU2LLfQAuPEbfNcHVidToHS41hAPkiX4g6kv7oWT55ZjfZ4q G+tV7+RmAYhsdEfPhuDVF521zaNpcDFS7/24PepM5lpqvb1WLkWMWrp+F1qrqmWsmMOvcp RI4ikf5lE+J+CLYtxbxY+f9oY+8hOt+HtKYLUutxfWdYLoKfxiUImBs96zgRqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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=1680523211; h=from:from:sender:sender: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; bh=wEdqZ5s06uSnV+VlOx5cBajEzuEgQTkh0DJxVBYQ7cg=; b=i4bBcQif1siKRYBamxaWXLCPQqwSzU59ut59AYo2X7fREpDEyAdOuzLYwuilKlp9qYbecq 1aDTaJ01MHz8hrBNaJyBctBDNlv7TcOsv2u3zTTjJC+8qX42tkC5QCiahpDxdTjsSOJ17Z e1Ofep4k23oSV6xATUb5in1XbQDKSaw1LaMyMvXvSH9Fdbi+R246xN67jUpCFdqs0YbjHO qfCZJv1i2P5O08/meRWPc7Gtu6pWdt6WJcfVyCNmufMHQKLOdACtnfdx4njR7ch0nX20Kf Pq7idP8q5GLsAO/4RXSQgls1rSny4zOkqPjOmMCR1pdvOTVYHZqiGfRp1CgAPA== X-Migadu-Spam-Score: -0.22 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: -0.22 X-Migadu-Queue-Id: CE4875FFD X-TUID: lffIJQFGB8Bf This is required to allow log file rotations using rottlog, etc. * gnu/services/web.scm (nginx-shepherd-service): Add reopen shepherd action. --- gnu/services/web.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 4fe9c2d9ab..45897d7d6f 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -840,7 +840,11 @@ (define (nginx-shepherd-service config) the same configuration file. It is useful for situations where the same nginx configuration file can point to different things after a reload, such as renewed TLS certificates, or @code{include}d files.") - (procedure (nginx-action "-s" "reload")))))))))) + (procedure (nginx-action "-s" "reload"))) + (shepherd-action + (name 'reopen) + (documentation "Re-open log files.") + (procedure (nginx-action "-s" "reopen")))))))))) (define nginx-service-type (service-type (name 'nginx) -- 2.39.2