From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 1/2] doc: Symlink daemon start-up files. Date: Fri, 18 Nov 2016 12:00:33 +0100 Message-ID: <1479466834-3508-2-git-send-email-h.goebel@crazy-compilers.com> References: <1479466834-3508-1-git-send-email-h.goebel@crazy-compilers.com> 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]:53782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7guR-0007AR-Cv for guix-devel@gnu.org; Fri, 18 Nov 2016 06:00:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7guM-0006Xb-Us for guix-devel@gnu.org; Fri, 18 Nov 2016 06:00:43 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:47410) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7guM-0006XE-HT for guix-devel@gnu.org; Fri, 18 Nov 2016 06:00:38 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tKw5K3JPxz3hm31 for ; Fri, 18 Nov 2016 12:00:37 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tKw5K3BGqzvkjf for ; Fri, 18 Nov 2016 12:00:37 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 7YNCuENGuzC3 for ; Fri, 18 Nov 2016 12:00:36 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-148-238.dynamic.mnet-online.de [188.174.148.238]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Fri, 18 Nov 2016 12:00:36 +0100 (CET) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id A366C606EE for ; Fri, 18 Nov 2016 12:00:34 +0100 (CET) In-Reply-To: <1479466834-3508-1-git-send-email-h.goebel@crazy-compilers.com> 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: guix-devel@gnu.org This patch ensures that always the current profile's daemon will be used. The .service file contains the path to the guix-daemon within the store. = Thus when copying the file, it will point to the very version of guix-daemon u= sed at the time of copying =E2=80=93 even after system upgrade or when this v= ersion has been garbage collected from the store. * doc/guix.texi (Binary Installation): Change example code for installing the systemd and Upstart files to use symbolic links instead of copying the files. --- doc/guix.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index a3eba58..92d7ee8 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -453,7 +453,7 @@ If your host distro uses the systemd init system, thi= s can be achieved with these commands: =20 @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 @end example @@ -461,7 +461,7 @@ with these commands: If your host distro uses the Upstart init system: =20 @example -# cp ~root/.guix-profile/lib/upstart/system/guix-daemon.conf /etc/init/ +# ln -s ~root/.guix-profile/lib/upstart/system/guix-daemon.conf /etc/ini= t/ # start guix-daemon @end example =20 --=20 2.7.4