* In fact get rid of the whole nfs-kernel-exports job.
svn path=/nixos/trunk/; revision=33156
This commit is contained in:
parent
d2b3c2cda4
commit
0c1ec805fc
@ -114,29 +114,12 @@ in
|
|||||||
|
|
||||||
jobs =
|
jobs =
|
||||||
optionalAttrs cfg.server.enable
|
optionalAttrs cfg.server.enable
|
||||||
{ nfs_kernel_exports =
|
|
||||||
{ name = "nfs-kernel-exports";
|
|
||||||
|
|
||||||
description = "Kernel NFS server";
|
|
||||||
|
|
||||||
startOn = "started network-interfaces and started portmap and filesystem";
|
|
||||||
|
|
||||||
postStart =
|
|
||||||
''
|
|
||||||
# exports file is ${exports}
|
|
||||||
# keep this comment so that this job is restarted whenever exports changes!
|
|
||||||
${pkgs.nfsUtils}/sbin/exportfs -ra
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// optionalAttrs cfg.server.enable
|
|
||||||
{ nfs_kernel_nfsd =
|
{ nfs_kernel_nfsd =
|
||||||
{ name = "nfs-kernel-nfsd";
|
{ name = "nfs-kernel-nfsd";
|
||||||
|
|
||||||
description = "Kernel NFS server";
|
description = "Kernel NFS server";
|
||||||
|
|
||||||
startOn = "starting nfs-kernel-exports or started portmap";
|
startOn = "started portmap";
|
||||||
stopOn = "stopped nfs-kernel-statd or stopping portmap";
|
stopOn = "stopped nfs-kernel-statd or stopping portmap";
|
||||||
|
|
||||||
preStart =
|
preStart =
|
||||||
@ -147,6 +130,10 @@ in
|
|||||||
# Create a state directory required by NFSv4.
|
# Create a state directory required by NFSv4.
|
||||||
mkdir -p /var/lib/nfs/v4recovery
|
mkdir -p /var/lib/nfs/v4recovery
|
||||||
|
|
||||||
|
# exports file is ${exports}
|
||||||
|
# keep this comment so that this job is restarted whenever exports changes!
|
||||||
|
${pkgs.nfsUtils}/sbin/exportfs -ra
|
||||||
|
|
||||||
# rpc.nfsd needs the kernel support
|
# rpc.nfsd needs the kernel support
|
||||||
${config.system.sbin.modprobe}/sbin/modprobe nfsd || true
|
${config.system.sbin.modprobe}/sbin/modprobe nfsd || true
|
||||||
|
|
||||||
@ -197,7 +184,7 @@ in
|
|||||||
"started nfs-kernel-mountd and started nfs-kernel-nfsd"
|
"started nfs-kernel-mountd and started nfs-kernel-nfsd"
|
||||||
else
|
else
|
||||||
"started portmap";
|
"started portmap";
|
||||||
stopOn = "stopping nfs-kernel-exports or stopping portmap";
|
stopOn = "stopping nfs-kernel-nfsd or stopping portmap";
|
||||||
|
|
||||||
preStart =
|
preStart =
|
||||||
''
|
''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user