aboutsummaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-12-16 23:52:06 +0100
committerLudovic Courtès <ludo@gnu.org>2018-12-17 23:33:42 +0100
commitbafcf1f32f3dfaf494d7640a3882585c143378cd (patch)
treea2250a09e9ccea080076b44f6781e80cd1a233c7 /gnu/services
parentcce654fabdf09cac7d18f9bad842ba8445aa022c (diff)
downloadguix-bafcf1f32f3dfaf494d7640a3882585c143378cd.tar
guix-bafcf1f32f3dfaf494d7640a3882585c143378cd.tar.gz
services: udev: Add 'rules' action.
* gnu/services/base.scm (udev-shepherd-service): Add 'actions' field. * doc/guix.texi (Base Services): Move "@end deffn" after 'udev-service' definition. Mention 'herd rules udev'.
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/base.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index b10f5cbaf1..67bdaef18c 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1967,7 +1967,15 @@ item of @var{packages}."
(respawn? #f)
;; We need additional modules.
(modules `((gnu build linux-boot)
- ,@%default-modules))))))))
+ ,@%default-modules))
+
+ (actions (list (shepherd-action
+ (name 'rules)
+ (documentation "Display the directory containing
+the udev rules in use.")
+ (procedure #~(lambda (_)
+ (display #$rules)
+ (newline))))))))))))
(define udev-service-type
(service-type (name 'udev)