From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Defining user services in Guix. Date: Tue, 02 May 2017 12:02:52 +0200 Message-ID: <87mvavk243.fsf@gnu.org> References: <87o9vowfn0.fsf@gmail.com> <20170422203131.610f2a30@scratchpost.org> <878tmsghzk.fsf@gnu.org> <87inlvdr76.fsf@gmail.com> <87r30hbbi7.fsf@gmail.com> <87fugwsx2s.fsf@elephly.net> <8737cu7z0s.fsf@gnu.org> <877f24pnem.fsf@gmail.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]:57650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5Ue6-0005OV-3J for guix-devel@gnu.org; Tue, 02 May 2017 06:03:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5Ue0-0005Y0-DH for guix-devel@gnu.org; Tue, 02 May 2017 06:03:02 -0400 In-Reply-To: <877f24pnem.fsf@gmail.com> (Mathieu Othacehe's message of "Fri, 28 Apr 2017 17:22:41 +0200") 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: Mathieu Othacehe Cc: guix-devel@gnu.org Hello Mathieu, Mathieu Othacehe skribis: >> Agreed. A =E2=80=98guix user=E2=80=99 tool (or similar) could talk to t= he user=E2=80=99s >> Shepherd instance to upgrade user services like >> =E2=80=98upgrade-shepherd-services=E2=80=99 does in (guix scripts system= ). > > With the attached patch, it is possibe to use (gnu services herd) to > interact with a user shepherd instance. > > For instance : > > (use-modules (gnu services herd)) > (parameterize > ((%shepherd-socket-file "/home/mathieu/.config/shepherd/run/socket")) > (current-services)) > > > Which returns : > > $1 =3D (#< provision: (redshift) requirement: () running: 3= 632> #< provision: (root shepherd) requirement: () running: #= t>) > > Based on that, I'll try to define a guix user command to upgrade user > services if it is ok for everyone :). Neat, sounds like a good plan! Could you create an account on Savannah, add the OpenPGP public key you=E2=80=99ll use to sign commits there, and let us know when you=E2=80=99= re done with a signed message? Looks like we should be able to increase the bandwidth. :-) Thanks, Ludo=E2=80=99.