From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ILNoGQNHbWGOyAAAgWs5BA (envelope-from ) for ; Mon, 18 Oct 2021 12:05:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IEEWFQNHbWGFCAAA1q6Kng (envelope-from ) for ; Mon, 18 Oct 2021 10:05:55 +0000 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 944922AAD6 for ; Mon, 18 Oct 2021 12:05:54 +0200 (CEST) Received: from localhost ([::1]:43634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcPWi-000233-Jc for larch@yhetil.org; Mon, 18 Oct 2021 06:05:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcPVv-000228-Ei for bug-guix@gnu.org; Mon, 18 Oct 2021 06:05:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcPVu-0002iR-SC for bug-guix@gnu.org; Mon, 18 Oct 2021 06:05:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcPVu-0007xl-Hl for bug-guix@gnu.org; Mon, 18 Oct 2021 06:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51141: guix home reconfigure does not apply changes to shepherd services Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 18 Oct 2021 10:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51141 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Oleg Pykhalov Received: via spool by 51141-submit@debbugs.gnu.org id=B51141.163455147730573 (code B ref 51141); Mon, 18 Oct 2021 10:05:02 +0000 Received: (at 51141) by debbugs.gnu.org; 18 Oct 2021 10:04:37 +0000 Received: from localhost ([127.0.0.1]:46038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcPVU-0007x2-TC for submit@debbugs.gnu.org; Mon, 18 Oct 2021 06:04:37 -0400 Received: from mail-lj1-f180.google.com ([209.85.208.180]:40544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcPVS-0007wp-44 for 51141@debbugs.gnu.org; Mon, 18 Oct 2021 06:04:35 -0400 Received: by mail-lj1-f180.google.com with SMTP id w23so7973425lje.7 for <51141@debbugs.gnu.org>; Mon, 18 Oct 2021 03:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=35Z6ND3XFYtH8oKz/k8G6zu2fuKICSwZaf3IO5ihMPY=; b=ZNUANj1h2NJflKUarPRtSMDwgYD4MPRRX5ySVklvkwekTdNMlKh8qvRe0Z2I2nA4Cb WTldl+I6fBK9vyBKZ/VoH9r5DR42eq9A6Cdl00x9WqhdBhLipB9ZJ4Rsij4/XLv98Xjl h584Sp+q2LP9Zihyl76reNul/g/2+8cEmyT0yTmnIbTYHI+OHbZamrlnVFJKNImBWXtD FnoTvmCvXKCvaNtIb3AcETSgmiYp5h7udtahAkgMDus/cRD0c3DC8EYdEyPcTjqXXH7C bR2LgWpdSwjsIm19RIb8fNYyat0Vpy/udG27+VzUS5m84ISaBONhTH5vXqmhGg94gVG8 EcQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=35Z6ND3XFYtH8oKz/k8G6zu2fuKICSwZaf3IO5ihMPY=; b=6fOGykrzUGuzodp7yf3TGJET+CSRpuzDWOoIyhAyvM4XGGp9yUIVBIN8usbdytLXUq S+GRyKRHByUA4dzD2iSdDkqL9/bl8v3qjUi8rTwaQMHI1GjkVsSuAUsW1OxKcWx8QpDg pvytuv2SYpPFArI0G8tCmyc2KofC6YZaAlOc5ELAFVvusv/A39Ja9ygvhoX25M3Rlu15 qkIGDWpytGgs7J0e362jPvUYiOnWc7n8Qq4vKVS5xNbGk2YZafAC+YI4m232UDm4E5CA pTwSZARN4LicB1FC1A0UDtX475wy5NQu0nl96Wwbg+uKdMAa6JSv8EI4nejibS7G0ihi xxBQ== X-Gm-Message-State: AOAM532UoFuAXbTkX3wU2g9+DhJd6dqEabjFwP6eNxfIUOnxj6dnFwSD xAf/NSCrbzKBuUgdkeLKUsutMQ== X-Google-Smtp-Source: ABdhPJxORbRhx58ZVOuojibsy+baooZ6YbKChKph7iK4lE7y5ZQ4eirf2VkhbAKOWFnjuUZeSM6cAg== X-Received: by 2002:a2e:a885:: with SMTP id m5mr10699394ljq.206.1634551468109; Mon, 18 Oct 2021 03:04:28 -0700 (PDT) Received: from localhost (109-252-140-132.dynamic.spd-mgts.ru. [109.252.140.132]) by smtp.gmail.com with ESMTPSA id a29sm1028514ljq.37.2021.10.18.03.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 03:04:27 -0700 (PDT) From: Andrew Tropin In-Reply-To: <87fst180wp.fsf@gmail.com> References: <87k0ijxjfu.fsf@gmail.com> <878ryuoljj.fsf@trop.in> <87fst180wp.fsf@gmail.com> Date: Mon, 18 Oct 2021 13:04:24 +0300 Message-ID: <8735oyhcnr.fsf@trop.in> 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 51141@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634551555; 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: dkim-signature; bh=35Z6ND3XFYtH8oKz/k8G6zu2fuKICSwZaf3IO5ihMPY=; b=mMEfc7hGlcpJdjojD6pOHFYpfeBiZVGubKDOVlrzZZXJlAe7vMH+88JDgdzE1EmAHUobVD kCTwhuQTWiqrrmP3PS2EE7sBTbdR1tWznFO/NJw9ZQmbVVB5CvSrGOEwv+dIxEjVzKiEac /u3dv98PbIT7qq2C4yWUidzf1Nwka4/lRJQPZ3L02xpE6GSFyt9uDFtb4aMTTUTHvKRUac NHhKvfHXvY9prNVtPLcmFBXGF7M1oQyuzVXf3Ia3/l5vn6BTj0VQlheVcabxKs6hpghh2D CvfQQopCkWr/LQsoVoaPLabjTk81ljCac6lXQrEVS/f5PmZY7WMdFBwJNi93Aw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634551555; a=rsa-sha256; cv=none; b=sU/LqWK8AEyFZuMgOQZPDp2Ov7gHeKWx9PmTiVnJ3e82ujleGpY0IWerK7d8+zY05kg/cZ F2AivsFMnQ//1fMmzk1znk02Wfhf3kM4Aflfva8XkvVFV7vwXjuQU0OS+Z17luhbQ/k7Ze EwzeZQQ9ofytRjnrgEv/S2s1MX/jcLZEYNQVg5cPvnl+7CK7SX5BVCUQsaRd6pPijwowM8 Zp5xWORuyDD7rC1Zah+BuVksgBj+Wnoot2SO6xvU0lOT0kV8kT4VeRsEvPTIHSYQ0lCwkD Nq7TAUJNw09FLEXJFl8lqzLjwvZnXLg1oO+8vgaMnU5yYWJHoBDHbOIDRZ6pRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=ZNUANj1h; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=ZNUANj1h; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 944922AAD6 X-Spam-Score: -1.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: AXDi3pM5dOkP --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2021-10-16 18:06, Oleg Pykhalov wrote: > Hi Andrew, > > Andrew Tropin writes: > >> On 2021-10-12 01:53, Oleg Pykhalov wrote: >> >>> After changing a home shepherd service I tried to reconfigure with 'guix >>> home reconfigure'. >>> >>> Process started by a service did not restart. Assuming home shepherd is >>> like Guix System shepherd I tried to 'herd restart SERVICE_NAME', the >>> process restarted but without changes in a service definition. >> >> It's intentional, only `herd load root new-config.conf` called on >> activation, so existing services are not affected to prevent situations, >> where emacs daemon or other important process killed in the middle of >> unsaved work. > > If I change something inside a system service definition > SERVICE-shepherd-service and then invoke 'guix system reconfigure', the > service will not restart and not produce any effect until I invoke 'sudo > herd restart SERVICE'. > > After herd restart the service will be running with applied changes and > does not require 'herd unload root SERVICE_NAME'. > E.g. nginx-service-type. > > I think this behaviour should be the same for home services. WDYT? Yes, make sense. According to what I see in the shepherd tests: https://git.savannah.gnu.org/cgit/shepherd.git/tree/tests/replacement.sh?h= =3D4c5176f5a7a5a1e7d7f258f585e8ed127a21b99a#n61 and how it's implemented in home-shepherd: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/home/services/shepherd.= scm?h=3D7c3f28fdc4edc00f66801cd51a5ba08eee44f77f#n59 It should work as you expect it. Tried to do the following: I updated documentation field for a shepherd service, reconfigured and it got loaded after I restarted a service. =2D-8<---------------cut here---------------start------------->8--- ~ $ herd doc state Init, update and maybe destroy state. ~ $ herd restart state Service state has been stopped. Service state has been started. ~ $ herd doc state Really init, update and maybe destroy state. =2D-8<---------------cut here---------------end--------------->8--- Didn't check if start action gexp is updated too, but I expect it was. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmFtRqgACgkQIgjSCVjB 3rBxfQ//d/ejTi6yo4hHtk7UzePVZLX9DZuMRM7hnHJWPI2nwRfQ14q4dRtZQwEZ IryUK3KTxjypx+ZGVDrdRml3QOFmz212Fi9aeLV4vWADynnSeFcSRKLUJHUfPLdZ /Bk28o4kYR8dXcyEYmCp0rjwONRiiqyj1CcodenWpm1f17vX8ol5AWJqXar46xK7 8EAqxiXQtGwcdST64Ic7/A7to6Sd63izz7e1zfmB+GX4iiFDSOsNUtfO5NuA5AsA +G9JK/HI3aFA9UUWFFpzfdCDHPipWvXzspaiF2C03aFkz7dr0vGfsZ197IYTHlW+ 1/sT5Jb2uA4BRufNoJtYC/AGj3TxEN1Vfi97q2erOebYFYRB1DBec3OM9DYwU8zB pOlbOlyXLIj9N3bpeSQA2HJLhm8f8v4JFg0B7a3fn3QImmF2bOhk8hVLx0Jkc/fA +0sAj8BgTClKX0eXUBdG5r//Fe0bq9AwZ1Xn8kLvGbRJ5CDN1PSrPHJ1MbNqk/NT /d3A4cYYS0vC6CKLq9XwOnke1aGLbv17OB3b4SbpaCUqR1R8zmg19ybegUU9kHEr ZVK9KNPF6fbPq9w103OAcOhebOHRmZsNwWQP2c6DDNSKyRzeyNTx6gBzCgZfXRNs AJDOviItRpTS+e2Vz05HmG+5sQrUxrE95k8z4DJE8X+Zr+Q/hQY= =joGb -----END PGP SIGNATURE----- --=-=-=--