services: nscd: Wait for the PID file.
authorLudovic Courtès <ludo@gnu.org>
Mon, 27 Jun 2016 18:57:35 +0000 (20:57 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 27 Jun 2016 19:41:38 +0000 (21:41 +0200)
* gnu/services/base.scm (nscd-shepherd-service): Pass #:pid-file.

gnu/services/base.scm

index 2780d12..274ff10 100644 (file)
@@ -790,6 +790,11 @@ the tty to run, among other things."
                                           "/sbin/nscd")
                            "-f" #$nscd.conf "--foreground")
 
+                     ;; Wait for the PID file.  However, the PID file is
+                     ;; written before nscd is actually listening on its
+                     ;; socket (XXX).
+                     #:pid-file "/var/run/nscd/nscd.pid"
+
                      #:environment-variables
                      (list (string-append "LD_LIBRARY_PATH="
                                           (string-join