From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/2] doc: Symlink daemon start-up files. Date: Mon, 16 Jan 2017 10:49:32 +0100 Message-ID: <8737gj1gib.fsf@gnu.org> References: <1479466834-3508-1-git-send-email-h.goebel@crazy-compilers.com> <1479466834-3508-2-git-send-email-h.goebel@crazy-compilers.com> <20161118203124.GA27280@jasmine> <20170115182310.GA26341@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cT3v1-00028j-FO for guix-devel@gnu.org; Mon, 16 Jan 2017 04:49:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cT3ux-0000sg-J0 for guix-devel@gnu.org; Mon, 16 Jan 2017 04:49:39 -0500 In-Reply-To: <20170115182310.GA26341@jasmine> (Leo Famulari's message of "Sun, 15 Jan 2017 13:23:10 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org Leo Famulari skribis: > On Fri, Nov 18, 2016 at 03:31:24PM -0500, Leo Famulari wrote: >> On Fri, Nov 18, 2016 at 12:00:33PM +0100, Hartmut Goebel wrote: >> > This patch ensures that always the current profile's daemon will be us= ed. >> >=20 >> > The .service file contains the path to the guix-daemon within the stor= e. Thus >> > when copying the file, it will point to the very version of guix-daemo= n used >> > at the time of copying =E2=80=93 even after system upgrade or when thi= s version has >> > been garbage collected from the store. > > I think we should go back to the "old way" of instructing users to copy > the file... > >> I'd argue it should point to /var/guix/profiles/per-user/root/... > > ... and make the service file execute this path. > >> > @example >> > -# cp ~root/.guix-profile/lib/systemd/system/guix-daemon.service \ >> > +# ln -s ~root/.guix-profile/lib/systemd/system/guix-daemon.service \ >> > /etc/systemd/system/ >> > # systemctl start guix-daemon && systemctl enable guix-daemon > > Debian Jessie (their current stable release) doesn't support symlinked > systemd service files yet [0], and we are frequently having to explain > to new users why this step doesn't work for them. And, we also have to > explain that the ExecStart value that contains the absolute store path > must be changed to point to '/var/guix/profiles...'. > > Doing it that way has the same effect of a symlinked file that is > updated automatically: the daemon is always the latest in root's > profile. > > It feels like we having to walk new users through this on IRC or > help-guix every day. I=E2=80=99m convinced. :-) Hartmut, WDYT? Could you send a patch? Thanks for the heads-up (and for helping out people on IRC!). Ludo=E2=80=99.