[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: Add rpc-daemon service
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] gnu: Add rpc-daemon service |
Date: |
Mon, 05 Sep 2016 22:38:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
John Darrington <address@hidden> 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 procedure
> and instead make sure to #:export (rpcbind-service-type).
>
> So what do I then put in /etc/config.scm ?
(operating-system
;; …
(services (cons (service rpcbind-service-type
(rpcbind-configuration …))
%base-services)))
> If you’re 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, say,
> the ‘rpcinfo’ program is able to connect to the daemon. But that’s
> bonus. :-)
>
> Are there some examples of existing system tests?
Yes, in gnu/tests/*.scm.
See also <https://savannah.gnu.org/forum/forum.php?forum_id=8605> and
<https://www.gnu.org/software/guix/manual/html_node/Running-the-Test-Suite.html>.
HTH!
Ludo’.