* Mount /var/run/nscd only once.

svn path=/nixos/branches/upstart-0.6/; revision=18607
This commit is contained in:
Eelco Dolstra 2009-11-24 17:25:35 +00:00
parent ed6daf4ea4
commit 8e8b3f9313

View File

@ -89,8 +89,10 @@ let
# (Upstart 0.6 apparently uses nscd to do some name lookups,
# resulting in it holding some mmap mapping to deleted files in
# /var/run/nscd.)
mkdir -p /var/run/nscd
${pkgs.utillinux}/bin/mount -t tmpfs -o "mode=755" none /var/run/nscd
if [ ! -e /var/run/nscd ]; then
mkdir -p /var/run/nscd
${pkgs.utillinux}/bin/mount -t tmpfs -o "mode=755" none /var/run/nscd
fi
mkdir -m 0755 -p /var/log