services: dbus: Synchronize startup using dbus-daemon's PID file.

* gnu/services/dbus.scm (dbus-shepherd-service): Pass #:pid-file to
'make-forkexec-constructor'.
This commit is contained in:
Ludovic Courtès 2016-07-16 00:03:41 +02:00
parent ee6a5d0e3e
commit b9bb50c608
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ includes the @code{etc/dbus-1/system.d} directories of each package listed in
(requirement '(user-processes)) (requirement '(user-processes))
(start #~(make-forkexec-constructor (start #~(make-forkexec-constructor
(list (string-append #$dbus "/bin/dbus-daemon") (list (string-append #$dbus "/bin/dbus-daemon")
"--nofork" "--system"))) "--nofork" "--system")
#:pid-file "/var/run/dbus/pid"))
(stop #~(make-kill-destructor))))))) (stop #~(make-kill-destructor)))))))
(define dbus-root-service-type (define dbus-root-service-type