Restart NFS on Gentoo host instead of starting
In the case that NFS is already started on a Gentoo host, /etc/init.d/nfs start will not reload exports, but fail. /etc/init.d/nfs reload is known to fail for some esoteric configurations of /etc/exports, restart should be safe for existing connections.
This commit is contained in:
parent
a92e03cf4c
commit
aa749db079
|
@ -24,7 +24,7 @@ module VagrantPlugins
|
||||||
@nfs_start_command = "/usr/bin/systemctl start nfsd rpc-mountd rpcbind"
|
@nfs_start_command = "/usr/bin/systemctl start nfsd rpc-mountd rpcbind"
|
||||||
else
|
else
|
||||||
@nfs_check_command = "/etc/init.d/nfs status"
|
@nfs_check_command = "/etc/init.d/nfs status"
|
||||||
@nfs_start_command = "/etc/init.d/nfs start"
|
@nfs_start_command = "/etc/init.d/nfs restart"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue