From 94088e9b4865cf10981b69b6922fe8d70e16187b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Jun 2010 13:45:51 +0000 Subject: [PATCH] * Daemonise mountd/statd. svn path=/nixos/branches/boot-order/; revision=22198 --- modules/services/network-filesystems/nfs-kernel.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/services/network-filesystems/nfs-kernel.nix b/modules/services/network-filesystems/nfs-kernel.nix index f249b79357a1..c3974881f0a2 100644 --- a/modules/services/network-filesystems/nfs-kernel.nix +++ b/modules/services/network-filesystems/nfs-kernel.nix @@ -149,7 +149,9 @@ in startOn = "starting nfs-kernel-nfsd and started portmap"; stopOn = "stopped nfs-kernel-nfsd"; - exec = "${pkgs.nfsUtils}/sbin/rpc.mountd -F -f /etc/exports"; + daemonType = "fork"; + + exec = "${pkgs.nfsUtils}/sbin/rpc.mountd -f /etc/exports"; }; } @@ -169,7 +171,9 @@ in mkdir -p /var/lib/nfs/sm.bak ''; - exec = "${pkgs.nfsUtils}/sbin/rpc.statd --foreground --no-notify"; + daemonType = "fork"; + + exec = "${pkgs.nfsUtils}/sbin/rpc.statd --no-notify"; }; }