From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 1/2] doc: Symlink daemon start-up files. Date: Sun, 15 Jan 2017 13:23:10 -0500 Message-ID: <20170115182310.GA26341@jasmine> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSpSb-0004I7-0p for guix-devel@gnu.org; Sun, 15 Jan 2017 13:23:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSpSX-0003uo-Ri for guix-devel@gnu.org; Sun, 15 Jan 2017 13:23:21 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:38140) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cSpSX-0003tK-LB for guix-devel@gnu.org; Sun, 15 Jan 2017 13:23:17 -0500 Content-Disposition: inline In-Reply-To: <20161118203124.GA27280@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: Hartmut Goebel Cc: guix-devel@gnu.org --jRHKVT23PllUwdXP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 use= d. > >=20 > > The .service file contains the path to the guix-daemon within the store= =2E Thus > > when copying the file, it will point to the very version of guix-daemon= used > > at the time of copying =E2=80=93 even after system upgrade or when this= 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/... =2E.. 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? [0] Jessie uses Systemd 215: https://packages.debian.org/search?keywords=3Dsystemd What about CentOS 7? Other distros? --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlh7vgsACgkQJkb6MLrK fwhyDhAA03YEuLSExne0pPGlGikhyzNRwXIa3eBBiCzOdUrQIuKRH7S2FAQl65jc iYgc+k6Eeiaqld22//hWK1K3tNmlmxZfRgQsTnV7fEc7KWfBuBdC3iOshQrug537 LW7ln3nQBQH2+uZvMkPq1HWHAjQL+1YW1ASEnIYoor4wgwhD8RJIokvvhBhqErMy 30QArYfF8MIRtEjt9MVDgruaN+o5WZjPJyz7M7JHbRwoDF/rDFvVzBQtu/TD/6H+ fat3hIs0rYcjXsyxxLLM5o6RmxgkS3RyffvhVuU405verPHEPb9wLnW7wEAPxLnh 1fDHNnLigJBReZcix/nzk45id4HpJujeLVnqOcGckXkg8H4twG1ZoS4N4MzD/iPB b7rd9hVLEJut0a0DjFeQ8hPgAKLYH3/BLJm41qFjfG4ej77tqdu74RU2eRtMdE9B YgWH7ye2QnBy+CLQUAFSkXgDEuOkFISd3qMJDJNbhYEratans2M+uirv3AzMbTKr n4cz8+LZ2Jicp1CfLIAYoY1Z9ubfv9ljbTjdSiBjGHH0T23bpBVdVH/fAa6EJTm3 yYdpJ7LRWutlTWARQ0a69G1qZdDuJiXtGKFGtWgSLTL4WClvEdxSyzPZAo29qUgi nujLNM1HGEDpdPwJPxFLbZxNfefR/9vuABTrC7SNsLGtHHrql/E= =nifa -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--