From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: Add rpc-daemon service Date: Mon, 05 Sep 2016 22:38:36 +0200 Message-ID: <877faqw08j.fsf@gnu.org> References: <1472884782-27956-1-git-send-email-jmd@gnu.org> <871t11kr86.fsf@gnu.org> <20160903145435.GA1561@jocasta.intra> 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]:46783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bh0fG-00042f-FC for guix-devel@gnu.org; Mon, 05 Sep 2016 16:38:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bh0fC-0004F6-Ae for guix-devel@gnu.org; Mon, 05 Sep 2016 16:38:45 -0400 In-Reply-To: <20160903145435.GA1561@jocasta.intra> (John Darrington's message of "Sat, 3 Sep 2016 16:54:35 +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: John Darrington Cc: guix-devel@gnu.org, John Darrington John Darrington skribis: > Also, the preferred way now is to expose service-type objects and not > provide procedures like the one above. So you can omit this procedu= re > and instead make sure to #:export (rpcbind-service-type). > > So what do I then put in /etc/config.scm ? (operating-system ;; =E2=80=A6 (services (cons (service rpcbind-service-type (rpcbind-configuration =E2=80=A6)) %base-services))) > If you=E2=80=99re willing to play a bit, it would be nice to have a = system test > that spawns a GuixSD with this service, and then makes sure that, sa= y, > the =E2=80=98rpcinfo=E2=80=99 program is able to connect to the daem= on. But that=E2=80=99s > bonus. :-) >=20=20=20=20=20=20 > Are there some examples of existing system tests? Yes, in gnu/tests/*.scm. See also and . HTH! Ludo=E2=80=99.