aboutsummaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-04-09 17:16:02 +0200
committerLudovic Courtès <ludo@gnu.org>2014-04-09 17:16:02 +0200
commitd69b35ee70543a98d1ce7c79e1ab970eb0eca5d2 (patch)
tree69c2ed423fc2a8a99bde6baef9ca4ad9d8a6b3f1 /gnu/services
parent2e4e01eebf3b4b5a40088580ce15078c5a272ef4 (diff)
downloadpatches-d69b35ee70543a98d1ce7c79e1ab970eb0eca5d2.tar
patches-d69b35ee70543a98d1ce7c79e1ab970eb0eca5d2.tar.gz
system: Initialize $PATH before starting dmd services.
* gnu/services/dmd.scm (dmd-configuration-file): Call 'setenv' before starting services.
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/dmd.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/services/dmd.scm b/gnu/services/dmd.scm
index 48e8d5534f..54fb5cbfd6 100644
--- a/gnu/services/dmd.scm
+++ b/gnu/services/dmd.scm
@@ -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))))