From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 2/2] Add system start-up files for "guix publish". Date: Mon, 21 Nov 2016 09:52:14 +0100 Message-ID: <8760nh1agx.fsf@gnu.org> References: <1479466834-3508-1-git-send-email-h.goebel@crazy-compilers.com> <1479466834-3508-3-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]:50302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8kKt-0005gX-7W for guix-devel@gnu.org; Mon, 21 Nov 2016 03:52:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8kKp-0001xG-G1 for guix-devel@gnu.org; Mon, 21 Nov 2016 03:52:23 -0500 In-Reply-To: <1479466834-3508-3-git-send-email-h.goebel@crazy-compilers.com> (Hartmut Goebel's message of "Fri, 18 Nov 2016 12:00:34 +0100") 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 Hartmut Goebel skribis: > * .gitignore: add etc/guix-publish.conf and /etc/guix-publish.service. > * etc/guix-publish.conf.in: New file. > * etc/guix-publish.service.in: New file. > * nix/local.mk (etc/guix-%.service, etc/guix-%.conf): Generalized former > build-rules for by using patterns. > (nodist_systemdservice_DATA): Add etc/guix-publish.service, update > comment. > (nodist_upstartjob_DATA): Add etc/guix-publish.conf, update comment. > * doc/guix.texi (Binary Installation): Add step for setting up "guix > publish" to start at system start using the new files. Good idea! > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -504,6 +504,40 @@ To use substitutes from @code{hydra.gnu.org} or one = of its mirrors > @example > # guix archive --authorize < ~root/.guix-profile/share/guix/hydra.gnu.or= g.pub > @end example > + > +@item > +(Optional) You may want to publish the content of your store for other > +systems in your network. For this run > +@example > +# guix archive --generate-key > +# useradd -U -d /var/empty -s `which nologin` \ > + -c "Guix publish user" --system \ > + guixpublish > +@end example > + > +Set @command{guix publish} to automatically start on boot. > + > +If your host distro uses the systemd init system, this can be achieved > +with these commands: > + > +@example > +# ln -s ~root/.guix-profile/lib/systemd/system/guix-publish.service \ > + /etc/systemd/system/ > +# systemctl start guix-publish && systemctl enable guix-publish > +@end example > + > +If your host distro uses the Upstart init system: > + > +@example > +# ln -s ~root/.guix-profile/lib/upstart/system/guix-publish.conf /etc/in= it/ > +# start guix-publish > +@end example > + > +Otherwise, you can still start @command{guix publish} manually with: > + > +@example > +# ~root/.guix-profile/bin/guix publish --user=3Dguixpublish > +@end example > @end enumerate I think this should rather go to =E2=80=9CInvoking guix publish=E2=80=9D, t= o avoid making =E2=80=9CBinary Installation=E2=80=9D too intimidating (and because = users do not initially care about running =E2=80=98guix publish=E2=80=99). WDYT? Also, I think it would be enough to add a cross-reference to =E2=80=9CInvok= ing guix archive=E2=80=9D where we mention that a key needs to be generated. Last, I think we should simply recommend user =E2=80=98nobody=E2=80=99, whi= ch we can expect to be already present. It does the job and will make the instructions shorter. WDYT? The rest LGTM, thanks! Ludo=E2=80=99.