From: ludo@gnu.org (Ludovic Courtès)
To: John Darrington <jmd@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add rpc-daemon service
Date: Mon, 05 Sep 2016 22:44:28 +0200 [thread overview]
Message-ID: <8737levzyr.fsf@gnu.org> (raw)
In-Reply-To: <1473103331-25267-1-git-send-email-jmd@gnu.org> (John Darrington's message of "Mon, 5 Sep 2016 21:22:11 +0200")
John Darrington <jmd@gnu.org> skribis:
> * gnu/services/nfs.scm: New file.
> * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
[...]
> +@cindex rpcbind
> +@subsubheading Rpcbind Service
s/Rpcbind/RPC Bind/
Also move the @cindex line after @subsubheading.
> +The @code{(gnu services rpcbind)} module provides the following service.
> +
> +@deffn {Scheme Procedure} rpcbind-service [#:rpcbind rpcbind] @
> + [#:warm-start? #t]
This procedure no longer exists. :-)
So instead, you need to add an @defvr for ‘rpcbind-service-type’ and an
@deftp for ‘rpcbind-configuration’, and a couple of sentences to glues
them together (see “Scheduled Job Execution” for an example.)
> +(define (rpcbind-shepherd-service config)
> + (define pkg
> + (rpcbind-configuration-rpcbind config))
> +
> + (define rpcbind-command
> + #~(list (string-append #$pkg "/bin/rpcbind") "-f"
> + #$@(if (rpcbind-configuration-warm-start? config) '("-w") '())))
> +
> + (list (shepherd-service
> + (provision '(rpcbind-daemon))
> + (requirement '(networking))
> + (start #~(make-forkexec-constructor #$rpcbind-command))
> + (stop #~(make-kill-destructor)))))
> +
> +(define rpcbind-service-type
> + (service-type
> + (name 'rpcbind)
> + (extensions (list (service-extension shepherd-root-service-type
> + rpcbind-shepherd-service)))))
Better use ‘shepherd-service-type’ here, as noted at
<https://lists.gnu.org/archive/html/guix-devel/2016-09/msg00271.html>.
And then we’re done. Could you send an updated patch?
Thank you for your patience!
Ludo’.
next prev parent reply other threads:[~2016-09-05 20:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-03 6:39 [PATCH] gnu: Add rpc-daemon service John Darrington
2016-09-03 14:11 ` Ludovic Courtès
2016-09-03 14:54 ` John Darrington
2016-09-05 20:38 ` Ludovic Courtès
2016-09-05 19:22 ` John Darrington
2016-09-05 20:44 ` Ludovic Courtès [this message]
2016-09-06 16:50 ` John Darrington
2016-09-07 12:17 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8737levzyr.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=jmd@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).