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:
Rudolf Leermakers 2013-11-11 12:30:40 +01:00
parent a92e03cf4c
commit aa749db079
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ module VagrantPlugins
@nfs_start_command = "/usr/bin/systemctl start nfsd rpc-mountd rpcbind"
else
@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