From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 1/2] doc: Symlink daemon start-up files. Date: Sun, 15 Jan 2017 20:23:26 +0100 Message-ID: <87a8asxh3l.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> 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: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSqOr-0000ra-Jn for guix-devel@gnu.org; Sun, 15 Jan 2017 14:23:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSqOn-0002KB-Kn for guix-devel@gnu.org; Sun, 15 Jan 2017 14:23:33 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36886) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cSqOn-0002K0-Fj for guix-devel@gnu.org; Sun, 15 Jan 2017 14:23:29 -0500 In-Reply-To: <20170115182310.GA26341@jasmine> 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 , Hartmut Goebel Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Leo Famulari writes: > 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. > > It takes our time and makes their first experience with Guix harder than > it should be. > > WDYT? This seems reasonable to me. I've started using /var/guix/profiles.. on foreign distros as well, even those with recent systemd. In addition to the above, using that path also avoids having to call 'systemctl daemon-reload' before restarting guix-daemon after updates... --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlh7zC4ACgkQoqBt8qM6 VPqwFgf8D/aFks3T0UYxxAoH/O50vIOEK5eTdD9uQaikn+7oaQ065BPnbW4nRqji OrBlw5/upFFqxsHr7XD2r4oQmjJ5hdzOx2fHfk7QWoYx5U1V2q9VW8Z21Lwn6Xm1 56M3d9hv+8/gW92cmDgcgJYcomHgMpwqmlihpeo1lEVWoM+0xg0IYdVkcalikNab uW9dVDFtDcrbiFdg8bgUWy9qwBAicpYmoDMFHLFqca6be+Xn9zlHMexL7AjaHJG7 2jjv1doWs7h1iW6ocCSynQSamoOqFFGRtkoivA2ioI8XoHbuRhkNRQq2PkKC08wB 2bpecq4QGnv2ioJevF++0FzDcc+TyQ== =SCpP -----END PGP SIGNATURE----- --=-=-=--