From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WKwOC7b0R2NM4gAAbAwnHQ (envelope-from ) for ; Thu, 13 Oct 2022 13:21:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gEunCrb0R2PLGQEAauVa8A (envelope-from ) for ; Thu, 13 Oct 2022 13:21:26 +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 D2197146A5 for ; Thu, 13 Oct 2022 13:21:25 +0200 (CEST) Received: from localhost ([::1]:50252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiwHE-00044j-Nt for larch@yhetil.org; Thu, 13 Oct 2022 07:21:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oivte-0008Lf-Ih for guix-patches@gnu.org; Thu, 13 Oct 2022 06:57:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oivte-0003q3-AS for guix-patches@gnu.org; Thu, 13 Oct 2022 06:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oivte-0006u3-0z for guix-patches@gnu.org; Thu, 13 Oct 2022 06:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58405] [PATCH] services: nginx: Add reload action Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Oct 2022 10:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58405 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: EuAndreh Cc: 58405@debbugs.gnu.org Received: via spool by 58405-submit@debbugs.gnu.org id=B58405.166565858226487 (code B ref 58405); Thu, 13 Oct 2022 10:57:01 +0000 Received: (at 58405) by debbugs.gnu.org; 13 Oct 2022 10:56:22 +0000 Received: from localhost ([127.0.0.1]:59714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oivsz-0006t9-U3 for submit@debbugs.gnu.org; Thu, 13 Oct 2022 06:56:22 -0400 Received: from mira.cbaines.net ([212.71.252.8]:41562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oivsy-0006t0-2R for 58405@debbugs.gnu.org; Thu, 13 Oct 2022 06:56:20 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:fc93:27fb:8412:c8b7]) by mira.cbaines.net (Postfix) with ESMTPSA id 09AFA27BBE9; Thu, 13 Oct 2022 11:56:19 +0100 (BST) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 3a519043; Thu, 13 Oct 2022 10:56:18 +0000 (UTC) References: <20221010043932.28384-1-eu@euandre.org> <87h70aaay0.fsf@cbaines.net> <166555804644.2805.1693234721157753050@localhost> User-agent: mu4e 1.8.9; emacs 28.1 From: Christopher Baines Date: Thu, 13 Oct 2022 11:40:23 +0100 In-reply-to: <166555804644.2805.1693234721157753050@localhost> Message-ID: <87a660801b.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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" 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=1665660086; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=zz+TqPrrBmk0csPXLd8C5uDZGPOCNtHJwFt4GO6Pcpw=; b=a9KkIvUXvIEqY8d9KUskAU1XUJKcUoDnBJ5aht37h5ckH24ZsiX+Log9q0Nb0SIvC7Us16 yUuM4jmpZdYwHH/8UivCK4u6BsG1Dr7NE5CRe9pDvtvc7nHKhXoivR5NuU41+bP+0euvam EETUbc0FIflLTo1h0jUeO8CQfk+OV8fowtesunPwAaUj2i0Lpr4jjEppnsW9OfzzAAVUzd V4gBjF2kPEJUdBK0KzwGYibMRogkmhUobiQtnc3VJ+hLX71kMys35YU69aeRurFQVR7Xh6 HF0oT2L4Wy5tG0l7evkZmb1BKr3p+WiT9yis9CYheFFyMJ3YLVZJAnUAjqpazA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665660086; a=rsa-sha256; cv=none; b=kpboJvEaN8yLUB+wBVmFE9YF4Bv51Oy3lS9AMcKIYxF8Ci+ZrlyarQIle/2SoSVMTetQyX 1SM32I+NWlhGXjebS0mV9oE6AXL8D1OCndTqfMXS8RQisGirvsRp6d0qg9sOglQpjMiSkp DDDNAF4T069W66V7bEcdEvu1xNpCXQ/daCQKajRYHxR5OzfZAOijH09K4lakg0YJ1qjmUJ dzKYi1fTNyiWHrRZWcAQ3J+z9rZA2Kaa21IdTngp0xTNYWYC0dVjN5Buxl61IoxdP0uRGy QhE2vweDhYYkCM6Io1JNBY4KuobSDBK/TXXmqATW+zwNy49mtGxEKI5CCnQEtQ== 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" X-Migadu-Spam-Score: -4.80 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-Migadu-Queue-Id: D2197146A5 X-Spam-Score: -4.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: KBBG4d3pX0OK --=-=-= Content-Type: text/plain EuAndreh writes: >> With the NGinx service currently, you need to restart it to change the >> NGinx binary or configuration file. > > It is true that you need to restart to change the NGINX binary, but this > is not true for changing the configuration file. > > NGINX's master process reloads the configuration file, which could have > an "include" line that points to ad-hoc files in /etc. So even though > the NGINX service is using the immutable file inside /gnu/store, > reloading it can have it change its runtime behaviour. > > The same behaviour is relied upon for certbot certificates: the current > certificate lives in /etc/letsencrypt/live, but it is a symlink that > points to /etc/letsencrypt/archive. When a certificate is renewed, a > SIGHUP ought to be sent to NGINX in order to reload the configuration > file, so that the certificates themselves can be reloaded, even though > neither the NGINX binary nor the configuration file changed, but only > what they point to did. That makes sense. I do think this still might cause confusion, since I think some will expect this to change NGinx to use the configuration defined in the system configuration. I'm not quite sure how to address that, but I think this can still be merged. Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmNH7tBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xd3Mw//cOibUqQovSdIMApd/pHe+Gn5ObOJrIwF D0a+34yubn/4xFWXeY9GFuRXhv/7jyQtuk+opSlkgo0ZAK3jt8YnyAIuUgvW05Ac XsJ8k2DA4LD6XALfsyNlPdk0C79nwiPEnv43rW6+Kae0q4CjyrMR+rx4Oqdzend9 uky5MtUhRohkkeZiuSIFRsnUS4pMwI9ynhUwl28XAVaXAH8gfsqSo8grGt3Rhq6p MlZ3X+ulaoJVhWScOqNYuvcvKxoOunot84cj090z5hkvxRyN35CzCTbRz1ro+s4y ehxIqV/V94q4LUwlPddLDZBs6dTxcjRzPhFJSy7mS81xQFdcVSDHfYGZigpcyeSm GgAYX692QjB9yeA606bu4ajFup4lrc20a/TxvkJh2p/0OKRebKofU5ba1P1agr8m hgqO+yPVDmdB+kZe2lqKNY6Y9Kk5/RY9wKNu7oTtai5owXDx0tOSv5h0QnpD9eTc Pce6w0A5VaNJWqmBgKTpst+8QG1xipveyVeghdMDHQz75W9YXZS0kjH0vH6UfLvE jENcCXld6VTtWQFNVA+xSf6mT5mal6WaVrkJRhcM7FLc0O+YLFzYECSsGZDp1Ic7 xLPra/DOrSjXzkERxlJeIKfJ3iA0Qd1VbX9JROJ6degu5BKZVSP8rZ5gIu64ZhnT 2MCMjZ0XCaY= =QmHO -----END PGP SIGNATURE----- --=-=-=--