mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 03:21:49 +02:00
services: dhcpcd: Add shepherd-provision field.
* doc/guix.texi (Networking Setup)<dhcpcd-configuration>: Regenerate the dhcpcd-configuration documentation. * gnu/services/networking.scm (dhcpcd-configuration) <shepherd-provision>: Add new field. Fix typo in client-id description. (dhcpcd-shepherd-service): Use it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
committed by
Ludovic Courtès
parent
ea4eeeed03
commit
7365e16db8
@@ -629,13 +629,18 @@ to @uref{https://www.rfc-editor.org/rfc/rfc2132#section-9.13,RFC 2132}.")
|
||||
(client-id
|
||||
maybe-string
|
||||
"Use the interface hardware address or the given string as a client identifier,
|
||||
this is matually exclusive with the @code{duid} option.")
|
||||
this is mutually exclusive with the @code{duid} option.")
|
||||
|
||||
;; Escape hatch for the generated configuration file.
|
||||
(extra-content
|
||||
maybe-string
|
||||
"Extra content to append to the configuration as-is.")
|
||||
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(networking))
|
||||
"This is a list of symbols naming Shepherd services provided by this service."
|
||||
empty-serializer)
|
||||
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '())
|
||||
"This is a list of symbols naming Shepherd services that this service
|
||||
@@ -662,11 +667,11 @@ will depend on."
|
||||
|
||||
(define (dhcpcd-shepherd-service config)
|
||||
(match-record config <dhcpcd-configuration>
|
||||
(command-arguments interfaces shepherd-requirement)
|
||||
(command-arguments interfaces shepherd-provision shepherd-requirement)
|
||||
(let ((config-file (dhcpcd-config-file config)))
|
||||
(list (shepherd-service
|
||||
(documentation "dhcpcd daemon.")
|
||||
(provision '(networking))
|
||||
(provision shepherd-provision)
|
||||
(requirement `(user-processes udev ,@shepherd-requirement))
|
||||
(actions (list (shepherd-configuration-action config-file)))
|
||||
(start
|
||||
|
||||
Reference in New Issue
Block a user