Fixing the boot sequence in case of only having nfsKernel.client.enable = true, and not server.

svn path=/nixos/trunk/; revision=31109
This commit is contained in:
Lluís Batlle i Rossell 2011-12-27 16:33:10 +00:00
parent 0de75cde39
commit 8bc381c4cd
1 changed files with 4 additions and 1 deletions

View File

@ -193,7 +193,10 @@ in
description = "Kernel NFS server - Network Status Monitor";
startOn = "started nfs-kernel-mountd and started nfs-kernel-nfsd";
startOn = if (cfg.server.enable) then
"started nfs-kernel-mountd and started nfs-kernel-nfsd"
else
"started portmap";
stopOn = "stopping nfs-kernel-exports or stopping portmap";
preStart =