summaryrefslogtreecommitdiff
path: root/gnu/services/base.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/services/base.scm')
-rw-r--r--gnu/services/base.scm11
1 files changed, 1 insertions, 10 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index e5062a72113..5108187d1ee 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1639,16 +1639,7 @@ the tty to run, among other things."
1639 #~(begin 1639 #~(begin
1640 (use-modules (guix build utils)) 1640 (use-modules (guix build utils))
1641 (mkdir-p "/var/run/nscd") 1641 (mkdir-p "/var/run/nscd")
1642 (mkdir-p "/var/db/nscd") ;for the persistent cache 1642 (mkdir-p "/var/db/nscd"))) ;for the persistent cache
1643
1644 ;; In libc 2.25 nscd uses inotify to watch /etc/resolv.conf, but only if
1645 ;; that file exists when it is started. Thus create it here. Note: on
1646 ;; some systems, such as when NetworkManager is used, /etc/resolv.conf
1647 ;; is a symlink, hence 'lstat'.
1648 (unless (false-if-exception (lstat "/etc/resolv.conf"))
1649 (call-with-output-file "/etc/resolv.conf"
1650 (lambda (port)
1651 (display "# This is a placeholder.\n" port))))))
1652 1643
1653(define nscd-service-type 1644(define nscd-service-type
1654 (service-type (name 'nscd) 1645 (service-type (name 'nscd)