system: Initialize $PATH before starting dmd services.
authorLudovic Courtès <ludo@gnu.org>
Wed, 9 Apr 2014 15:16:02 +0000 (17:16 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 9 Apr 2014 15:16:02 +0000 (17:16 +0200)
* gnu/services/dmd.scm (dmd-configuration-file): Call 'setenv' before
  starting services.

gnu/services/dmd.scm

index 48e8d55..54fb5cb 100644 (file)
@@ -69,6 +69,9 @@ ETC (the name of a directory in the store) on startup."
          (rm-f "/var/guix/gcroots/etc-directory")
          (symlink ,etc "/var/guix/gcroots/etc-directory"))
 
+       ;; guix-daemon 0.6 aborts if 'PATH' is undefined, so work around it.
+       (setenv "PATH" "/run/current-system/bin")
+
        (format #t "starting services...~%")
        (for-each start ',(append-map service-provision services))))