[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: services: wpa-supplicant: Support specifying additional service d
From: |
guix-commits |
Subject: |
04/07: services: wpa-supplicant: Support specifying additional service dependencies. |
Date: |
Thu, 2 Jul 2020 17:22:28 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 4d06076714f03da55d09efede055f0c40da3403e
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Jun 25 00:33:38 2020 +0200
services: wpa-supplicant: Support specifying additional service
dependencies.
* gnu/services/networking.scm (<wpa-supplicant-configuration>)[requirement]:
New parameter.
(wpa-supplicant-shepherd-service): Use it instead of hard-coded list.
* doc/guix.texi (Networking Services): Document accordingly.
---
doc/guix.texi | 3 +++
gnu/services/networking.scm | 9 ++++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 7823367..ce17c2d 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -14172,6 +14172,9 @@ It takes the following parameters:
@item @code{wpa-supplicant} (default: @code{wpa-supplicant})
The WPA Supplicant package to use.
+@item @code{requirement} (default: @code{'(user-processes dbus-system loopback
syslogd)}
+List of services that should be started before WPA Supplicant starts.
+
@item @code{dbus?} (default: @code{#t})
Whether to listen for requests on D-Bus.
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index bd01df1..348dc36 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -133,6 +133,7 @@
wpa-supplicant-configuration
wpa-supplicant-configuration?
wpa-supplicant-configuration-wpa-supplicant
+ wpa-supplicant-configuration-requirement
wpa-supplicant-configuration-pid-file
wpa-supplicant-configuration-dbus?
wpa-supplicant-configuration-interface
@@ -1319,6 +1320,8 @@ whatever the thing is supposed to do).")))
wpa-supplicant-configuration?
(wpa-supplicant wpa-supplicant-configuration-wpa-supplicant ;<package>
(default wpa-supplicant))
+ (requirement wpa-supplicant-configuration-requirement ;list of
symbols
+ (default '(user-processes dbus-system loopback syslogd)))
(pid-file wpa-supplicant-configuration-pid-file ;string
(default "/var/run/wpa_supplicant.pid"))
(dbus? wpa-supplicant-configuration-dbus? ;Boolean
@@ -1332,12 +1335,12 @@ whatever the thing is supposed to do).")))
(define wpa-supplicant-shepherd-service
(match-lambda
- (($ <wpa-supplicant-configuration> wpa-supplicant pid-file dbus? interface
- config-file extra-options)
+ (($ <wpa-supplicant-configuration> wpa-supplicant requirement pid-file
dbus?
+ interface config-file extra-options)
(list (shepherd-service
(documentation "Run the WPA supplicant daemon")
(provision '(wpa-supplicant))
- (requirement '(user-processes dbus-system loopback syslogd))
+ (requirement requirement)
(start #~(make-forkexec-constructor
(list (string-append #$wpa-supplicant
"/sbin/wpa_supplicant")
- branch master updated (aea64ac -> 415becc), guix-commits, 2020/07/02
- 02/07: gnu: Add debianutils., guix-commits, 2020/07/02
- 03/07: services: wpa-supplicant: Do not export the <wpa-supplicant-configuration> record., guix-commits, 2020/07/02
- 04/07: services: wpa-supplicant: Support specifying additional service dependencies.,
guix-commits <=
- 07/07: gnu: Add drbd-utils., guix-commits, 2020/07/02
- 01/07: gnu: Add UFO: Alien Invasion., guix-commits, 2020/07/02
- 05/07: gnu: Add parprouted., guix-commits, 2020/07/02
- 06/07: gnu: audacity: Update to 2.4.1., guix-commits, 2020/07/02