John Darrington <j...@darrington.wattle.id.au> 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’.

Reply via email to