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 ms9.migadu.com with LMTPS id KC+GEwWYQmR13AAASxT56A (envelope-from ) for ; Fri, 21 Apr 2023 16:04:53 +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 YCFrEwWYQmR8cgAAauVa8A (envelope-from ) for ; Fri, 21 Apr 2023 16:04:53 +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 E599CF88C for ; Fri, 21 Apr 2023 16:04:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pprMs-0003ee-Oe; Fri, 21 Apr 2023 10:04: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 1pprMo-0003dn-T5 for guix-patches@gnu.org; Fri, 21 Apr 2023 10:04: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 1pprMo-0002gP-KX for guix-patches@gnu.org; Fri, 21 Apr 2023 10:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pprMn-0007Mt-Uu for guix-patches@gnu.org; Fri, 21 Apr 2023 10:04:01 -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: Fri, 21 Apr 2023 14:04:01 +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.168208582728303 (code B ref 62802); Fri, 21 Apr 2023 14:04:01 +0000 Received: (at 62802) by debbugs.gnu.org; 21 Apr 2023 14:03:47 +0000 Received: from localhost ([127.0.0.1]:40859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pprMZ-0007MQ-He for submit@debbugs.gnu.org; Fri, 21 Apr 2023 10:03:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pprMX-0007MB-Qt for 62802@debbugs.gnu.org; Fri, 21 Apr 2023 10:03:46 -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 1pprMS-0002eL-4t; Fri, 21 Apr 2023 10:03:40 -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=LWECXNq0+fDkrmQZw9TN3pOcYPElWVSOlZaPCcoWe1c=; b=mj1s2Ef/NPKeKRcLL88v YBctCJwiqFJ1Prg3KM/jXgp72I0sCz1FnTtBIVFc/aNmICDLaxCN5rNrDTKyPf89dIP/1l0VHyoMA Jtml8BJSoRKNQDrAsSc0Oj3dOYkOUw7tjzq90Li56Fs4Sw1xpZhtOSH8g8NSVGKY34+62SKWSmbDG 3v5l09KrDAI4lqj/Y6ODmuPQ21PW5jfahS3fJpT76RDsQVwS6cImrEDVcFTaS+6dpU7B7vX5VmVfy r1p7TsLBrarJFtwskAe42028j2AAH+ELEodx1oMeX5vM6Ybeyb82YPIIqjvIaALawMNWnNUemd57Q 8MeA6HMqkyjKxw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pprMR-0007Cw-MH; Fri, 21 Apr 2023 10:03:39 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230413011530.1960-1-maxim.cournoyer@gmail.com> <20230413012408.2759-1-maxim.cournoyer@gmail.com> <87v8hqshmz.fsf_-_@gnu.org> <87354txutp.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 2 =?UTF-8?Q?Flor=C3=A9al?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du =?UTF-8?Q?Ch=C3=AAne?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 21 Apr 2023 16:03:37 +0200 In-Reply-To: <87354txutp.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 21 Apr 2023 08:50:58 -0400") Message-ID: <87jzy5ib7q.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=1682085893; a=rsa-sha256; cv=none; b=kngAsMdKWWHznUhLIvYhg2xwAgkH19L/ezDl5RRIfo7yNTb/j3urvYXm8QiQICrb+LYglp LURo+Sz54Rg4MIGORh6xY2hVo+sZWBciCXBabwGAkyJLJFxm5WjWn311dyadB6RlvcxU3e cmCgYA94HN392HeuaBZHyZX+FVj02YCJ4/WUe2EVvTlEC8Ef5o5xzNGak1bRkM94Og1W8m YaC+We2B1JNsvHv5TdLrNwKioenAXkzbu/Pk3pOcYiGjSwa7Vr2Bj5idv0JnaorBKZpyrJ 4zQbEeWOx6ePa2uLPW7zN1jWmMMGsbE0B0Pren845aBi4Zql6x11DWNG+B5tdw== 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="mj1s2Ef/"; 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=1682085893; 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=LWECXNq0+fDkrmQZw9TN3pOcYPElWVSOlZaPCcoWe1c=; b=cPm30+zezFmk+PFenl2WDYG7pJCeHWV3yWI9ViiTCYXYvlk81cU9VHsj4AC6DmPGr7ou/x E6gDzdSIKl+NaoMWTtdyGWgXOJ3w79hqGwZ9PQaAeFemUUKqcLlABIAMMm5Z9P2w45u9ue YkrHJHYiXTYIe9nj5oNTrTH47Vx2F1RO9W7qsRx1sMt2D05XDQVtID0MI91H+uDyxpGj9z RANksBicopVZapdY8Hn4ioyzHrqE7GWOzua+kclyGuB4ku+T0zVpoFG5qf3dJKffU99Kve 9+lix5R1tjQX9P47Op1dLk+OQxT8rLb55x4z75osgLUj8vvYvh99nntE9EQ1Og== 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="mj1s2Ef/"; 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.12 X-Spam-Score: -4.12 X-Migadu-Queue-Id: E599CF88C X-TUID: OgZQtBMCElhT Hi! Maxim Cournoyer skribis: > Ludovic Court=C3=A8s writes: [...] >> I=E2=80=99m really not a fan of static configuration file names: you can= never >> 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. > > Right; although now if you aren't sure what is used you can 'reload' it, > eh :-). True. :-) The other issue is that that makes it impossible to run several instances of the service (not a problem for syslogd of course, but could be an issue elsewhere). >> With the Shepherd in =E2=80=98master=E2=80=99, there=E2=80=99s a hook to= change a service=E2=80=99s >> =E2=80=9Crunning value=E2=80=9D so it should be possible to stop the pre= vious process, >> start a new one, and update the service=E2=80=99s running value (which i= s not >> equivalent to SIGHUP, but maybe good enough for some cases). > > Wouldn't that be equivalent to restarting the service? I wasn't aware > of the new hook facility, I'll have to read on it, thanks! There=E2=80=99s nothing to read :-) and it wasn=E2=80=99t designed with tha= t use case in mind, but we=E2=80=99ll see. >> 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! > > Interesting idea... although it'd only be compatible with Linux and I > dislike writing special cases in services (or anywhere if I can help > it). Yeah. Ludo=E2=80=99.