From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yBP8BOpYQWQkVAAASxT56A (envelope-from ) for ; Thu, 20 Apr 2023 17:23:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gO8DBepYQWREGwAA9RJhRA (envelope-from ) for ; Thu, 20 Apr 2023 17:23:22 +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 8F00F27D38 for ; Thu, 20 Apr 2023 17:23:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppW7l-0003kJ-Ba; Thu, 20 Apr 2023 11:23:05 -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 1ppW7j-0003jh-Ci for guix-patches@gnu.org; Thu, 20 Apr 2023 11:23: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 1ppW7j-0005yn-4i for guix-patches@gnu.org; Thu, 20 Apr 2023 11:23:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppW7i-0002hM-Jt for guix-patches@gnu.org; Thu, 20 Apr 2023 11:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62802] [PATCH 0/4] Add reload action to syslog service. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Apr 2023 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62802 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 62802@debbugs.gnu.org Received: via spool by 62802-submit@debbugs.gnu.org id=B62802.168200416210326 (code B ref 62802); Thu, 20 Apr 2023 15:23:02 +0000 Received: (at 62802) by debbugs.gnu.org; 20 Apr 2023 15:22:42 +0000 Received: from localhost ([127.0.0.1]:38546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppW7O-0002gU-Ab for submit@debbugs.gnu.org; Thu, 20 Apr 2023 11:22:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppW7J-0002g7-HE for 62802@debbugs.gnu.org; Thu, 20 Apr 2023 11:22:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppW7E-0005sB-62; Thu, 20 Apr 2023 11:22:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=MXE+ZRgNqA1xLTLjVBRJAFQQR6jIz/vrAF3FpQMFTSM=; b=LdQo8Vs/kr+QWDsqa81s xcR+oqJgXOcGCyMfjHh/BcsMqY22uXxQ1R6exvGchSgEJFwZGsLqkZ/OI63In+uJ1lkKLA+9vjay0 uA+LGvcIlMNBlGwhFj5qGnhPFRwAlNULRt0afwBSn93ubQfr9tmDi3HnfhASZTIZcM9TxK2ntSvzw 5Kjs/rZs/FwtLU99xIOqWgG/UgpEQ2Cc+1WvNnoECpRY2KnMkoJr5mba6yYe6fviXoFWH0UWs8C4L CPleR7UDyUNxOBMUof/mAZhIDA4o42Vobcepu2PJYTkH09uaQuTbi2h0cNC6ai20mj4+cPDBdl5qr SEJ1mDVx5ivupw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppW7D-00055Y-BV; Thu, 20 Apr 2023 11:22:31 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230413011530.1960-1-maxim.cournoyer@gmail.com> <20230413012408.2759-1-maxim.cournoyer@gmail.com> Date: Thu, 20 Apr 2023 17:22:28 +0200 In-Reply-To: <20230413012408.2759-1-maxim.cournoyer@gmail.com> (Maxim Cournoyer's message of "Wed, 12 Apr 2023 21:24:04 -0400") Message-ID: <87v8hqshmz.fsf_-_@gnu.org> 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682004201; a=rsa-sha256; cv=none; b=Q31dy1EaUrIOqVujyaBfZ81WqWYlcZ1DVr6vfTNKgSisfQbsahlxHfG3+eFIijCPq5IyHT AigNIWVw6sBP1KnF++Fhrp9vjaTjnoq0if6Ls4hwA8TvRTn+y3hi3zOE+zK2+j8nRCj43l Mx+FrRlBxvYrUchL0Y7XZL/QyCU6ShL8n0PZf5VPmeKOIfQD+DRKT5HrdTEqlXaeHF+Pwi V07qLQx5UwHzjKhasLvxnt0HOP4nTKiT5iHVFZBIHUv6sDg9gNVRfg1A2h7xNPbWQxd+rH PI7w+RlwVplZjq1Tis4b0IGestCKQoWjO6Tm9f/dS1sENLT2tqW1Jv37BB4Heg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="LdQo8Vs/"; 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=1682004201; 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: 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=MXE+ZRgNqA1xLTLjVBRJAFQQR6jIz/vrAF3FpQMFTSM=; b=Kvx4A3EkgfsEysXVX8eT4QNNQwtIuPcMeTJJ36UmzfYz2NzpxtCZBVXu+aYujaM8a7codv ymkby62ElbxEhI30PqTkPhNNLWrqEEQTB+364ZdGD7Jxg5GzduzFRbKVlWTaOP0WAaABCu opZoxn4YYVdM/QyUjY/I8i2E9BPrr5YjVP8bNYlYVLEJwT3dOWmy8Dzwzijl+Z6Df33i0H KjwWuaBEvo+/VavSTPj0vWHdLk9HFaYJSikHxzHH0vtOv6AMmvyvxX/sCw7cbVpvVWUhq/ J2JwebUr7tgqpnv1ivqHXU0/0n1UZsMpKd3R1d33g4Itj+PNnYYZZAVn3KEmaw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="LdQo8Vs/"; 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: -4.11 X-Spam-Score: -4.11 X-Migadu-Queue-Id: 8F00F27D38 X-TUID: N2zVkvpzWcSq Maxim Cournoyer skribis: > Having the configuration live at a static location makes it possible to > hot-reload it. > > * gnu/services/base.scm (syslog.conf): New variable. > (syslog-etc, syslog-shepherd-service): New procedures. > (syslog-service-type): Rewrite using the above new variable and procedure= s, > extending etc-service-type with its configuration file. I=E2=80=99m really not a fan of static configuration file names: you can ne= ver be sure what config the service is using=E2=80=94compare this with the unambiguous =E2=80=98--config=3D/gnu/store/=E2=80=A6example.conf=E2=80=99. Unfortunately there=E2=80=99s often no other option if we want to support l= ive reconfiguration=E2=80=94there=E2=80=99s only so much a signal can convey. So I guess it=E2=80=99s a =E2=80=9Cweak accept=E2=80=9D from me, because li= ve reload is useful. With the Shepherd in =E2=80=98master=E2=80=99, there=E2=80=99s a hook to ch= ange a service=E2=80=99s =E2=80=9Crunning value=E2=80=9D so it should be possible to stop the previo= us process, start a new one, and update the service=E2=80=99s running value (which is n= ot equivalent to SIGHUP, but maybe good enough for some cases). A simpler approach might be run the service in a container with /gnu/store/=E2=80=A6conf mapped to a fixed location, and somehow update that mapping as we go. Food for thought! Ludo=E2=80=99.