From unknown Fri Jun 13 10:15:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51141: guix home reconfigure does not apply changes to shepherd services Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 11 Oct 2021 22:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51141 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 51141@debbugs.gnu.org Cc: Andrew Tropin X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.163399281212600 (code B ref -1); Mon, 11 Oct 2021 22:54:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Oct 2021 22:53:32 +0000 Received: from localhost ([127.0.0.1]:32984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma4Al-0003H9-Uv for submit@debbugs.gnu.org; Mon, 11 Oct 2021 18:53:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:56046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma4Ak-0003H0-CK for submit@debbugs.gnu.org; Mon, 11 Oct 2021 18:53:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ma4Ak-0006or-3r for bug-guix@gnu.org; Mon, 11 Oct 2021 18:53:30 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:36822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ma4AV-00030G-F7 for bug-guix@gnu.org; Mon, 11 Oct 2021 18:53:29 -0400 Received: by mail-lf1-x12a.google.com with SMTP id c16so24720537lfb.3 for ; Mon, 11 Oct 2021 15:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version; bh=fJ+5sY/eS3jEDAIbIyIRxMp+OBvvJn9deim8G2CBgv8=; b=Mo/y2Z3VnW0vXByeCg5FH7NjcvSAHyTy/32pCkAToKrBDHx3UpT3IHopmtjotUeCMq UMG5KpC+VwqQRBrqSzWAtvecdNLTjwvCJxq1agNsetO1FEaMcnWCkciHTJLzEO+kz4U9 aJu1DVvXOZezniuHtOaKHzMmDtQ94excNfJVELcRl0cLCA3ZM+yzpmOr8OQUZYaZ9CsK B9nwEwJr+CyATb8Y/byHI+ANDK3V33dyH9pKYGc07pS0wg0p5hE/XBCtCOVN2L0Nhvfh yg5CVCP2Q45KMweOtZlIUnLNM3QvJAhCD16D2TQpE03IUGYJ43+CZAjKUi/RSYcPjUmc Ol9w== 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:date:message-id:mime-version; bh=fJ+5sY/eS3jEDAIbIyIRxMp+OBvvJn9deim8G2CBgv8=; b=AY89VWIyd2L9um0MsoMKYbx/2yxAIwjjXTDZKH3YlUujpzwqJPAYfsS0ejScX93nQO 26oRPcbcHi3Wejt496IQ0/p3t9czcVfh5t3wHuJHOoE28LIsAuOivcc3TA49tP7gwkOF jVtczhLbElHvi9XLIoCxgGtrM+iBI/Q3eRJsembOhTwBWkhX/YSQCa+4rNYUWojfOwgu BK+i2d0ED3JVdDKE+LWroTIz1WOBp3LgYXWbopMvGmYmLh0TDjWZjxPi+sblCff0J1F5 Pd3RGqxuSI6V9S3chZmtdvwIWk9Bw2Dnvq96ZfXIl4Nw1tRFYXh6XGcq8611TUSWnb2c X97w== X-Gm-Message-State: AOAM530dKSH1C+8isDkXmb927JJF83NPbI3zdD4k7K+QvSvUznXyBUWa 5aMdJ3/z5kwVzFrf4yeWOhQ= X-Google-Smtp-Source: ABdhPJwXtZFT++X8Ymi+EcpR+bY7V1tZykhlvcTPpOK/QqFRDJVRp4qTMkN04NUxWYkuh/QIQUcHhA== X-Received: by 2002:a05:6512:2609:: with SMTP id bt9mr29544187lfb.202.1633992793634; Mon, 11 Oct 2021 15:53:13 -0700 (PDT) Received: from guixsd ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id h9sm852347lfl.42.2021.10.11.15.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 15:53:13 -0700 (PDT) From: Oleg Pykhalov Date: Tue, 12 Oct 2021 01:53:09 +0300 Message-ID: <87k0ijxjfu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=go.wigust@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain 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. To forcely apply the changes I invoked 'herd stop root' and then ran 'guix home reconfigure' again which spawned new shepherd with applied changes. Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAmFkwFUUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pwtUQ/7Bx9UIxCumw9uXhmp9TUf4PmV3m9g T46S8/PBMjD2+z5PXSZrxWmMJhcabsxWtmxTLt3n4V3aR46R/Oto76BKkpEmddU8 JgteNLixn616unumtXV0WbT1advsCsI2jC2N7PDnV2/F2t+SrKtIMvmS6QevS5pj eyeEY7+qdTg4tfxJDp60zAmUrG08bblI54NQvLpy320O+wZINa9onHLCNjvoy1jQ uGIT0Z2axEOnkcVmDYPkP9SdFCrj6cdmFRmiZ1fPsF/2HDwpfrnjk4pBgdzw+U/J f3BIoOU9Dx+QCqv0gW0cfEZkyiy4ZUy6v4Zg8+lQRmvkg8J/I0ud+/bdr/qKzMNa UdeXwNgJLam1FP3kh/pGRn6ArltfbJtqi/6g475eG8/GxhOmuQJw7CYwDeNFEPgx 4l51dToHsN9oF8eKuUv4s6uq/9cE9iQIj5c8Xesdg027dupijdHhkirzcwEUohvY H4GxY/yrez5Z0IqnjAMsnnX7yC3TxTnvht5vFu18BxEmSWBomYnPLCrB5wgcQ43L 9/ny4i32zhyQLF+zGZXkInIpKFNXT17dG+1f1+Vxbg3qxzTTzAH+G27wE/MvXapC wkpyBKfcxfudmEUxWQaqqDhLKdoDLWcx7SEJ8dVcwBGtZ4h0PeWsmIxigR5pqvBO YKEygnzHjiuzims= =sorG -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 13 10:15:11 2025 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: Fri, 15 Oct 2021 06:22: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: go.wigust@gmail.com, 51141@debbugs.gnu.org X-Debbugs-Original-To: Oleg Pykhalov , bug-guix Received: via spool by submit@debbugs.gnu.org id=B.163427891126312 (code B ref -1); Fri, 15 Oct 2021 06:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Oct 2021 06:21:51 +0000 Received: from localhost ([127.0.0.1]:37834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbGbH-0006qJ-5e for submit@debbugs.gnu.org; Fri, 15 Oct 2021 02:21:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:34704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbGbF-0006qC-Ra for submit@debbugs.gnu.org; Fri, 15 Oct 2021 02:21:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbGbF-000652-M3 for bug-guix@gnu.org; Fri, 15 Oct 2021 02:21:49 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:33611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbGbD-0001pA-Pl for bug-guix@gnu.org; Fri, 15 Oct 2021 02:21:49 -0400 Received: by mail-lf1-x12b.google.com with SMTP id j21so37717795lfe.0 for ; Thu, 14 Oct 2021 23:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20210112.gappssmtp.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=Fl79bki+XtEuBtbI+p2S2kouB74rtWRRX3x6qCbscaY=; b=ZaleoR6MM9wSuk71RpVZwQATe4O87wJhrbumRBEmktrqsNrVlZEuHx8XMC75oQObGw 6JSLBOk9wu5MYaRM7806UHgV5IAJkb/tgM7bCf0+sc6YHHNtJk7FJtiAVKdZS1eUbD/l pNm4CUn90Vh0HdmQn6N8yS90frYxliUIbGQZcIUku4sBvLfrPw7WQsaCvGuk+tIvwTGk trlq/lk8uU3KHJMYS7x58acbpOusL2Wbs1HeYSEXuKrzSVzvnaYheZl7m6K6piS113JP fkrlkS6G1Gch0yIZYH+cTy8YxuvdaAFNiRpxiAEeXCaQfS4FSuRWMOvmC7zxUy8w2s4I dOdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=Fl79bki+XtEuBtbI+p2S2kouB74rtWRRX3x6qCbscaY=; b=OesONsDdnO8I7iEqNdTKSy0wq2Hb1s43RsEyrwPATRsMWm0qE9ylTCAEJwmMGdTOSC p24V8ivznT1ebxWRHLZQ7hqtgQH4iGIDyG9fPRm6IDsSgLGXqx3XJcTqrK6hRiaRg0fm 4gerX6cL6FdlPQ6A++OJDr9U+mnjNhZDzhMlSXoELdpZSUq24+Z9mkGpMyMryqqOyBqt I/uI/58G2+nuwqbJnJXzlnND12tRqtePiXsU9HA88biXKXMIYJhE3wZM7CNxlbzW3dYU xR2Uzj0GIKPvCp42hD0XKJrKCSRw2g5crxy2epHnKQSuqXj1Rzi9nTVtz6BQphQKuhFE 52RQ== X-Gm-Message-State: AOAM5338pDzsv1r6iyxKClJymIInlpojt9oW93XhyyCDTZq+0y1jEAGm SmsKLZRGfP3fCvwqlMpkVxHJJw== X-Google-Smtp-Source: ABdhPJy/g7uC/40n3ATmauu/aDCV/V5XuUy3va9i+zclNrr8GvIIdQG1vK2VwjAWQk74caiLIiUhtw== X-Received: by 2002:ac2:420a:: with SMTP id y10mr9878723lfh.87.1634278906080; Thu, 14 Oct 2021 23:21:46 -0700 (PDT) Received: from localhost (109-252-140-132.dynamic.spd-mgts.ru. [109.252.140.132]) by smtp.gmail.com with ESMTPSA id t7sm452467lfg.60.2021.10.14.23.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 23:21:45 -0700 (PDT) From: Andrew Tropin In-Reply-To: <87k0ijxjfu.fsf@gmail.com> References: <87k0ijxjfu.fsf@gmail.com> Date: Fri, 15 Oct 2021 09:21:36 +0300 Message-ID: <878ryuoljj.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=2a00:1450:4864:20::12b; envelope-from=andrew@trop.in; helo=mail-lf1-x12b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. You can do `herd unload root SERVICE_NAME` and after that reconfigure will apply the latest configuration and start the service (if auto-start? is true). > > To forcely apply the changes I invoked 'herd stop root' and then ran > 'guix home reconfigure' again which spawned new shepherd with applied > changes. > > Oleg. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmFpHfAACgkQIgjSCVjB 3rDzGQ//S8QfLSy6F4qRMh1wSn8EU8oaRHprb17CS2FkwWurfd6AMDuW1PBnUChz D0wQOJKl7xL3UPuULrtFDTcbTSCcrY0XotMUT8u/JQCCzJkYAfQ4TCv2b1yyRQgT WvIFac4FLIFeoq1PRFxIY0juIfkKHaTBd43LuhguQWbvZHRZSU26/kPuYh6yG483 6/B0dHD7/wp/ojuBZnNi2Jt+ijO81bVvy6sA6zvB7exdlpEJkLANyVOLrL1BjetT mqcIBqHGEtNiM16L9rgVZAwd6dG+DItwN8L7ItOPjaX5zh8+isECG9N9Ff22UKpY U5KfIfM16rttNlDaiJy+z4RvOH2s4/gcbRInnUCdaP/YXqkr6W+lGz3heRjeImlg KO9nl6u5YnpK2LT9JilnrjsDlnjVB7pt3IC0jm+qgP11Y47MtP4l+Hx3Z65/ztXK 3JY00zBoYSuA7L+BNP6q+0+LSOgjJtJr336lAcpyosFh8v4TTRrx4chLHjp61sF6 OcP3baWtTiLscJ4MKTaTTwIyYfkii+imL/tD9tULoNce0bM9E0g+JBPzfsVR3gpu bPNvxd6wKHoF1v7tLzoUJsD1pZPfjoI7K8XM2FdVCUtFGWYY/RCWu7KIRjhPlIdC +7P1HkWjjs4Zt8ncZhcedQsb+lZ/4gUWmLV3K7ZHitAFoCPHBn4= =tQZM -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 13 10:15:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51141: guix home reconfigure does not apply changes to shepherd services Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 16 Oct 2021 15:07: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: Andrew Tropin Cc: 51141@debbugs.gnu.org Received: via spool by 51141-submit@debbugs.gnu.org id=B51141.163439678922320 (code B ref 51141); Sat, 16 Oct 2021 15:07:02 +0000 Received: (at 51141) by debbugs.gnu.org; 16 Oct 2021 15:06:29 +0000 Received: from localhost ([127.0.0.1]:42830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mblGX-0005nw-9m for submit@debbugs.gnu.org; Sat, 16 Oct 2021 11:06:29 -0400 Received: from mail-lf1-f53.google.com ([209.85.167.53]:36471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mblGV-0005nj-U6 for 51141@debbugs.gnu.org; Sat, 16 Oct 2021 11:06:28 -0400 Received: by mail-lf1-f53.google.com with SMTP id g36so38634642lfv.3 for <51141@debbugs.gnu.org>; Sat, 16 Oct 2021 08:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=AS4gmX+dIzUX3nycL526k1nxP0WW3RaYaEFuOXKJcD4=; b=kNPaIVbPk4zONdVVRk48g911C11lOuAu4LsRxqjEzdqZZ7JQHXw0NKC7nB0dqoHp6n ECKuKTvyzamoGTAplG9dmhQl6z1Y3GCJmpcG7mNBzeygYDhz5mrMwlW8xB+o4vYrO0sb 9HRe2yU2BvYx+d7rBdZt6QKjkwvwjglrLkwisCKr7gHDs7ltIuq2h5R1Rtnkyt0o7faP w4Jgax8B/KNCJZx4ZU/P06Xa5pOsckOLdNk6HIoQSIE2vo2Wf25q4HH+w6eC/k1LOtKb 9tE8XvA5h+0YZGtFN/aAP+Hu99TKqDsBaqQ21yRq3FWXJuciRmrt2GymLEHEtNMKyhqK cB1Q== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=AS4gmX+dIzUX3nycL526k1nxP0WW3RaYaEFuOXKJcD4=; b=DkJD7rj3hoTBC8cTr4gv6q3eSGwTtI4T3zs+GOQ/a6Ewa4LuLjQrPdP5eHXG+xQ06T 8w+XijJLtJocRk8Ndl/DsTrqTaB2jLGXcRvWWvMQnJNM5IzV+BhJX1HvOsUr4O6u0Ybv KF3CBp8PzDPMKOJOSQmcnQm8GReKuyzDpsd3C9T2ClbzS3myN5IdZsFfqSjgs4G6mmLf LRXw3257K02sQUtl1+OKDq+8eOY5QIy7NEl64DDobb0qcvsdbzR/S69V/J05MzUMJASv IDjfFMhHIBm0NzVjrrIDh/mAWrH9kQ7G0h2SVKS0RTrEWJF1oBLv1Bf/b2vin8Q1Hi/w 5s1w== X-Gm-Message-State: AOAM530b8/7OZ6nB1Xbp9pxOI0gv9G0KxprAHT+yOK4JMmvYeo2c9/Za okVcMrfGOaEzkntNOEku0IFDvCV1Qg4= X-Google-Smtp-Source: ABdhPJyYsKx5kubr9sFXFwdgvEsZ+xsDuMmGrOK9lRohkyRuQlcshPIwyy1mq7M8IdFqj+dOxEwb2w== X-Received: by 2002:a05:651c:1689:: with SMTP id bd9mr19145453ljb.22.1634396781511; Sat, 16 Oct 2021 08:06:21 -0700 (PDT) Received: from guixsd ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id b10sm962451ljo.14.2021.10.16.08.06.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Oct 2021 08:06:20 -0700 (PDT) From: Oleg Pykhalov References: <87k0ijxjfu.fsf@gmail.com> <878ryuoljj.fsf@trop.in> Date: Sat, 16 Oct 2021 18:06:14 +0300 In-Reply-To: <878ryuoljj.fsf@trop.in> (Andrew Tropin's message of "Fri, 15 Oct 2021 09:21:36 +0300") Message-ID: <87fst180wp.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain 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 inoke '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? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAmFq6mYUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pw/rg//XMp7YM4c2grdQlnKRlpzVYTrmy7/ WUnByU5fENGUdF6FrTa93NGz7cAnld930m8lPMgKApyBi/G9jX6TP5Oj+FNlX89x SCAzXpoBhbBBB9wbHmz09OwatKcnLIf98zD9kQyyxxvZY7B3A4gbuP4+RMvZTYUk 46HAEeiGwSq7SEAsx7a9qo1/Mw/wXx+fNyO8ONK5J9Jdkta+o0agZYeatZUzZdfc vGaXWevqJDbiABCIoCIiqEzamd36vTq4jH7ZseHtnfPF+O5d3KDm1qgmu6/csQG0 ZVIOx3Z/obTvW2M1uE15KVXDM2mkgTAP1fXKEHRVxdc9ntB+bLxHn0ewfsBGMkHJ zbGG/iB3Fl2umTPiKQ6Cmmsrt3ZvkS7ygTrH08s27HwyLQnNPzbS3/jA2w8oq5lD TAel487EX15marl9p6k7fRgGN+xjlhigdEbQhr5mVoPb1br2Wz8AG5CbVKzZVBFS X1qBSUMe6He8w0p1CZI2ndjW9Mi8KjKMdhUrmooiexiQFXOiyo9+g0AWW2ZvF7MG FXO/7tZNvnW2ARwl7aGWy8NGbUZwsjcvJYrNrPexPcYJa7zxCRbg9t80TeEHr2V3 YBr5I7QsOqRFbwsxeKBTOBHPabxaUzZOpSNJgM7VzOxXEXXwqxrI9+CzAn8nZvVB XV1kriQ2FdRbpvQ= =AFHX -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 13 10:15:11 2025 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 Cc: 51141@debbugs.gnu.org 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-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= 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----- --=-=-=-- From unknown Fri Jun 13 10:15:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51141: guix home reconfigure does not apply changes to shepherd services Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 21 Oct 2021 23:34: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: Andrew Tropin Cc: 51141@debbugs.gnu.org Received: via spool by 51141-submit@debbugs.gnu.org id=B51141.163485918724008 (code B ref 51141); Thu, 21 Oct 2021 23:34:02 +0000 Received: (at 51141) by debbugs.gnu.org; 21 Oct 2021 23:33:07 +0000 Received: from localhost ([127.0.0.1]:58927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdhYZ-0006FA-5p for submit@debbugs.gnu.org; Thu, 21 Oct 2021 19:33:07 -0400 Received: from mail-lj1-f181.google.com ([209.85.208.181]:37597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdhYX-0006EV-IQ for 51141@debbugs.gnu.org; Thu, 21 Oct 2021 19:33:06 -0400 Received: by mail-lj1-f181.google.com with SMTP id g8so598678ljn.4 for <51141@debbugs.gnu.org>; Thu, 21 Oct 2021 16:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XxXCaKdfhK2vxZnNBpvzAuhhOYB6/IFaNrdIia9jxD0=; b=W7WDqtnbmTDQTE1HeSwZt1GVQc1GuAhacjA106EvKYpshdu02b9ciKdVPKhJ/TIa8w 9XmBGK59i6LSpLkjoPHu/n4dtaByvDKzQWSKFm1arc7cqCT7b48jg0nzxDVLen2p2UPZ 7xJ6QkBvSib6kOJt6z20CKp6GAA0sP5ld6AIkKTAGupXRRLShh1xm5CGuUuzZiWLN790 Gl1T2W3EJXGVBq7HD4O6Nl41oWjNOh2jFGQ/afKiPBPIFP5EwBocItoa/5eTXlIfioRF lQQQ4EUXORkrjuvecUiA7UZJnCCAw3A9uhrBjuRMsLeMP8QVTFmnVsdTayJjAldRpn3f gC9g== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=XxXCaKdfhK2vxZnNBpvzAuhhOYB6/IFaNrdIia9jxD0=; b=dgJ4M3QCMH5IzYZ6wGKZIj/sfO6XLPD/KasP/PvbXSIQTkUXnwoJyA2Yh695+gepIp DiTCgArbtosy04cQvMGCVDj1c6csPvq90VfXnE9leo6sePf7dkYK3I+7tjbmdokJLsYU 26Tv0huRV4AsnG77JMaqPE9CmTJes5rRFqkTufzmo/AJBy2y/RqwJAphOCpWd2QaF42n BvoTUdy/UHT7dVeBvBidO53y+Dj/2Dm8B2ZSZrnc9f/UIuj5b3mSS+IyRxmt1n/GiAvQ HASxHOqeRiqmibEPBAY+ZARYul/GIBlJMw/vfxMsgvUGjZalzlJFNyxPh+ANOFEXdymK dK2g== X-Gm-Message-State: AOAM531r2XCP91eKqwesvv326o5yK5MZZ8wdMNnNrU8oL7xOXUf5ujc+ sTnVutxnP6mn1rc15PF0nI+EzPznGgc= X-Google-Smtp-Source: ABdhPJy2rs7BGN8d+eWipdCZ/zz7UsGkJaEMXPxFcFFNpS4Ws50irtQfovS8DWDqZTHmy77wpZSI1Q== X-Received: by 2002:a2e:b4ba:: with SMTP id q26mr9589623ljm.39.1634859179135; Thu, 21 Oct 2021 16:32:59 -0700 (PDT) Received: from guixsd ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id h6sm572534lfp.186.2021.10.21.16.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 16:32:58 -0700 (PDT) From: Oleg Pykhalov References: <87k0ijxjfu.fsf@gmail.com> <878ryuoljj.fsf@trop.in> <87fst180wp.fsf@gmail.com> <8735oyhcnr.fsf@trop.in> Date: Fri, 22 Oct 2021 02:32:51 +0300 In-Reply-To: <8735oyhcnr.fsf@trop.in> (Andrew Tropin's message of "Mon, 18 Oct 2021 13:04:24 +0300") Message-ID: <878rymt0m4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Andrew Tropin writes: [=E2=80=A6] > 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/shepher= d.scm?h=3D7c3f28fdc4edc00f66801cd51a5ba08eee44f77f#n59 > > It should work as you expect it. It doesn't. > Tried to do the following: I updated documentation field for a shepherd > service, reconfigured and it got loaded after I restarted a service. > > ~ $ 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. > > Didn't check if start action gexp is updated too, but I expect it was. The start action is the interest, or configuration record, or service extension. (guix scripts system reconfigure) has a upgrade-shepherd-services procedure, which was created in 240b57f0ca576708ebf6cfa0dfe2803fa9ff2323 and discussed in https://issues.guix.gnu.org/22039 [ The following text only describes how to reproduce the issue. ] When I tried to write goimapnotify service no changes applied after modifications in home-goimapnotify-shepherd-service [1] and [2], which are typical service-type and record. I didn't have similar issues with self-written system services. [1]: https://gitlab.com/wigust/dotfiles/-/blob/ea2111906233099267f3b581b4aa= e39ad9645c2d/dotfiles/guixsd/modules/home/services/mail.scm#L28-45 [2]: https://gitlab.com/wigust/dotfiles/-/blob/ea2111906233099267f3b581b4aa= e39ad9645c2d/dotfiles/guixsd/home.scm#L40-65 Service extension also requires to unload service, e.g. mcron service extension in [1] and [2]. [1]: https://gitlab.com/wigust/dotfiles/-/blob/ea2111906233099267f3b581b4aa= e39ad9645c2d/dotfiles/guixsd/modules/home/services/package-management.scm#L= 16-50 [2]: https://gitlab.com/wigust/dotfiles/-/blob/ea2111906233099267f3b581b4aa= e39ad9645c2d/dotfiles/guixsd/home.scm#L154-161 If I remove the guix-delete-generations service from home configuration, mcron job still exists according to 'herd schedule mcron'. =2D-8<---------------cut here---------------start------------->8--- (home-environment (services (list (service guix-delete-generations-service-type ;; ... )))) =2D-8<---------------cut here---------------end--------------->8--- Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAmFx+KMUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pz/DQ/+M3VbM5O3X1Fu4nQmBkt4j2L61vHC zisO/DlZ7YwOJZkgfG0uBA3Fir55MwhJhmBDlOh5bWGzK+rxHa0xFaaALTqKXcpk PLlgHBmq9qCJBdeMJX2T4whc6Zi9Ufnow1/pO/kQRfFwSbGGKB8F2dYud/rs89KZ xinId2Y7zRY0HhR/MCGDVbKXFipAvyBw5Z9nYR1vfLkd2RmFuHdfiY+KI366iQ92 qfVTL3GMMJBNu2M9pciRi8vbMTz67C8VJNZy29W5gk6OmS8i5SSO/K7fJjBJJsmR tbfaOWKapJnYwA6GBc7XrJ3oqag5ZflfyiUojjzCnlr4pRbWPncoIqmLz+gtoGik znH3kNt8h55ePpL42VsdYZpLUNJ5FNV6LEdb9V6BW7ytBMxxnv5QZzX4ZeSj8D3J AKRthel5VbZnmNNWLtRS6/SCoDW7+eUj7cwO5ndgly5FA3hfIwqhd8AMg4jnUarz DAczxTZr0C9nuA8o6Y2OZ3vBxQeWLdZBMw6Gp764JHGJ7WBEn33ytFILJ8y2V9A4 rhMwIVTxPfZsJSUbhdw6cORpZenb0spJzI93XfNgkmrLlHmEWDxmfscE6OQQSHVF Ycdd4hG3rrCYAOjCVOPiI9AQq8QsXrVPerYbwY88910N4CbdkR0XLOIxbIdB+ojS rjUBtXG5IMq4wI0= =m97Q -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 13 10:15:11 2025 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: Sat, 23 Oct 2021 07:12:01 +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 Cc: 51141@debbugs.gnu.org Received: via spool by 51141-submit@debbugs.gnu.org id=B51141.163497309315873 (code B ref 51141); Sat, 23 Oct 2021 07:12:01 +0000 Received: (at 51141) by debbugs.gnu.org; 23 Oct 2021 07:11:33 +0000 Received: from localhost ([127.0.0.1]:34250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meBBl-00047x-6K for submit@debbugs.gnu.org; Sat, 23 Oct 2021 03:11:33 -0400 Received: from mail-lf1-f49.google.com ([209.85.167.49]:45898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meBBj-00047k-54 for 51141@debbugs.gnu.org; Sat, 23 Oct 2021 03:11:32 -0400 Received: by mail-lf1-f49.google.com with SMTP id x192so179501lff.12 for <51141@debbugs.gnu.org>; Sat, 23 Oct 2021 00:11:31 -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=8jdG0B32B5fYiwZW+FSkdluaoX6csOgfLmBRuUpyPrQ=; b=eG07kW03q+bUWPQlkkexWU8fUiuiCmWXz+PfQ8sHculCFvFjwAz2pbuEERiDu3ntQY CULbniwE/snU4nVYo9biymxUBVpbdkajCjH5EBv7izVCyB9QCLY5oByaZxcJBsT20RfU bbSSpPj7sWpqB65iHDVXxeFbzCfY3r4aW7pK7WcUUvCqeNBXOOQTnU134L1WkY2vfBKq GYs5Kb1Neu1BollncfLCrjPCOwMYVXwpZltk2tko7KuvCpzz6mX0ZAxG0AFDxF8fqyxw 99VTGSSmUcfhxQNPLH8HjJDLGI6CMKDuvWpt3CDJC1JpKjzQ4AbKO7MkpqNOHZjttpxe Uc4w== 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=8jdG0B32B5fYiwZW+FSkdluaoX6csOgfLmBRuUpyPrQ=; b=xdpNMxTbr1yKA0bzvVaF3k/28sYhe7jzRIMAccNWMB1gia0mq9HXYbZRgbYyu3XhvR 8n5GVv9GGQDvDdeOcKg75iWOoQ2qiQG8CEvigN4vPFcuCXb8RX7vqXaele5mN8p+CdGg DmQxiiDCCTJ4grARgAk25qI/0yER+/J8Hm5StVLKReHRMZOij8sHU755L5/OpPkQ14Qx c+8/i1lYis1BxjH9xU/Eo8Mhl49kYA2HTUFwSeq9pPQeULXFyMEBSGXQiN4LpFWpc+Mr pzpx13GgAh9ZYm3WwYBRxBubA6joLEoE+E5IhxBISyB+dZA3iegpxFOXR6qjvdmPHfjc lxcg== X-Gm-Message-State: AOAM530/VbTuEmmWbqAQNnrvsW6PNNwDFekcvkbwTAambJ2np+equCBH Ixheia6M4cqB88yTB2Jb6IfsDA== X-Google-Smtp-Source: ABdhPJywClBpgdePeCKytK/cJMw1ML7JtNJKiCRZGC8hxuZZ3YncYuXU/G1OhXpL3/kNsn2zb8EOVQ== X-Received: by 2002:a05:6512:22d6:: with SMTP id g22mr4171007lfu.577.1634973084984; Sat, 23 Oct 2021 00:11:24 -0700 (PDT) Received: from localhost (109-252-140-132.dynamic.spd-mgts.ru. [109.252.140.132]) by smtp.gmail.com with ESMTPSA id v3sm945857lfr.61.2021.10.23.00.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Oct 2021 00:11:24 -0700 (PDT) From: Andrew Tropin In-Reply-To: <878rymt0m4.fsf@gmail.com> References: <87k0ijxjfu.fsf@gmail.com> <878ryuoljj.fsf@trop.in> <87fst180wp.fsf@gmail.com> <8735oyhcnr.fsf@trop.in> <878rymt0m4.fsf@gmail.com> Date: Sat, 23 Oct 2021 10:11:20 +0300 Message-ID: <87bl3gkyg7.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-10-22 02:32, Oleg Pykhalov wrote: > Andrew Tropin writes: > > [=E2=80=A6] > >> 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/shephe= rd.scm?h=3D7c3f28fdc4edc00f66801cd51a5ba08eee44f77f#n59 >> >> It should work as you expect it. > > It doesn't. > >> Tried to do the following: I updated documentation field for a shepherd >> service, reconfigured and it got loaded after I restarted a service. >> >> ~ $ 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. >> >> Didn't check if start action gexp is updated too, but I expect it was. > > The start action is the interest, or configuration record, or service > extension. From=20the experiment above it's clear that new configuration got loaded and service record get updated after restart (at least one field of it). > > (guix scripts system reconfigure) has a upgrade-shepherd-services > procedure, which was created in 240b57f0ca576708ebf6cfa0dfe2803fa9ff2323 > and discussed in https://issues.guix.gnu.org/22039 The difference with update-shepherd-services is the usage of Shepherd CLI in home service instead of Shepherd API in system service. So the problem can hide somewhere around this part. Automatic unloading in home-service doesn't happens and as I said it's by design to prevent cases of losing unsaved work. However, it can be implemented with an optional separate flag to shepherd configuration record and extension to run-on-change-service or as it done in system shepherd with the list of services, which doesn't have to be unloaded automatically. > > > [ The following text only describes how to reproduce the issue. ] > > > When I tried to write goimapnotify service no changes applied after > modifications in home-goimapnotify-shepherd-service [1] and [2], which > are typical service-type and record. I didn't have similar issues with > self-written system services. > > [1]: https://gitlab.com/wigust/dotfiles/-/blob/ea2111906233099267f3b581b4= aae39ad9645c2d/dotfiles/guixsd/modules/home/services/mail.scm#L28-45 > [2]: https://gitlab.com/wigust/dotfiles/-/blob/ea2111906233099267f3b581b4= aae39ad9645c2d/dotfiles/guixsd/home.scm#L40-65 > I'm out of office for next 1.5 week, will check it when I come back. > > Service extension also requires to unload service, e.g. mcron service > extension in [1] and [2]. > > [1]: https://gitlab.com/wigust/dotfiles/-/blob/ea2111906233099267f3b581b4= aae39ad9645c2d/dotfiles/guixsd/modules/home/services/package-management.scm= #L16-50 > [2]: https://gitlab.com/wigust/dotfiles/-/blob/ea2111906233099267f3b581b4= aae39ad9645c2d/dotfiles/guixsd/home.scm#L154-161 > > If I remove the guix-delete-generations service from home configuration, > mcron job still exists according to 'herd schedule mcron'. > --8<---------------cut here---------------start------------->8--- > (home-environment > (services > (list (service guix-delete-generations-service-type ;; ... > )))) > --8<---------------cut here---------------end--------------->8--- > > Oleg. BTW, please remove unreviewed changes to interpose function, they are incorrect. https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/configuration.= scm?id=3D41492639e0223dc8fc1a357e1f9537577c055db7#n362 The explanation: https://issues.guix.gnu.org/50967#66 The correct version: https://git.sr.ht/~abcdw/rde/commit/4961f47c3f97c21799= a39b3e906fa99b2625f331 =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmFztZgACgkQIgjSCVjB 3rCDNg//cfbza8wERHT56rQwiZN60nZ/NOK1MSFgCseazq4XfVath28H3fvHBEY8 vZwJW2JrDgph0+mJ6YyyPkuBszXWJGD+J8i43eQrEwWzzkIuOqVFlESHLHy3D1SK lUS670xHYW7hdTCjksMs8H7kIycYqES1vsK47PFOGdxlbj0K/BfBqRAAnBi23aPS 0KOzQ8uPVz7poTZWufpIlRQ7CXkTd1vrXY6JBK/1MdIcWSUQ1C5tXMHk0uKWT08G +r0oBbPQ5L/V7BYVYzYvjqg/mlEAxh0ewSRzh7ebLjo95yVK5xW5VRDzJu9f9qTu Ne8R8ZJ7tO37T0w7XnlG2UROTbAaG2Vx91s3A6WQvHnFrVtUVXHxtP1/cxd6907K ughs94fHTEnPXhBLc+49l1xpYa+1QfV+nLaWjr//QB8HlYMihBJ3PQgovR5Rnl4k iXUcbF3rjX3wyWIRJNWRVL1oOKuNmin9lu4RhJLXLcqWN4Gk45gYeOAYnslrzqHe qK3Pd53MoKaYkbAFJO/uZWYWN8prsCpQl6qr7lRXoaxJsC3oe8QX/1dZvaRrn8SG Ikj5Hd7aZ9p/JDQZBO16I6XoUJ6bUy/qxK/1vRzOQSOIgRwBB4WYXQZG+QdeV4FA ebQJP/8Zbqccv3ATkBGjmGiCY+kTuSRiUE2yQHIResFtZlarhxM= =2f9C -----END PGP SIGNATURE----- --=-=-=--