mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
services: dbus: Honor the config's dbus package.
* gnu/services/dbus.scm (dbus-dmd-service): Rewrite using 'match-lambda'
so that the config's dbus package is used. Fixes a regression
introduced in 64643b9
.
This commit is contained in:
parent
5e3bfe9d01
commit
4a663ca4e8
1 changed files with 11 additions and 9 deletions
|
@ -118,15 +118,17 @@ (define (dbus-activation config)
|
|||
(execl prog)))
|
||||
(waitpid pid)))))))
|
||||
|
||||
(define (dbus-dmd-service config)
|
||||
(list (dmd-service
|
||||
(documentation "Run the D-Bus system daemon.")
|
||||
(provision '(dbus-system))
|
||||
(requirement '(user-processes))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list (string-append #$dbus "/bin/dbus-daemon")
|
||||
"--nofork" "--system")))
|
||||
(stop #~(make-kill-destructor)))))
|
||||
(define dbus-dmd-service
|
||||
(match-lambda
|
||||
(($ <dbus-configuration> dbus)
|
||||
(list (dmd-service
|
||||
(documentation "Run the D-Bus system daemon.")
|
||||
(provision '(dbus-system))
|
||||
(requirement '(user-processes))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list (string-append #$dbus "/bin/dbus-daemon")
|
||||
"--nofork" "--system")))
|
||||
(stop #~(make-kill-destructor)))))))
|
||||
|
||||
(define dbus-root-service-type
|
||||
(service-type (name 'dbus)
|
||||
|
|
Loading…
Reference in a new issue