From aa749db0793dce034e5888c1666e1ab8daa4bf68 Mon Sep 17 00:00:00 2001 From: Rudolf Leermakers Date: Mon, 11 Nov 2013 12:30:40 +0100 Subject: [PATCH] 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. --- plugins/hosts/gentoo/host.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hosts/gentoo/host.rb b/plugins/hosts/gentoo/host.rb index 52b6b34c5..7d9b73de2 100644 --- a/plugins/hosts/gentoo/host.rb +++ b/plugins/hosts/gentoo/host.rb @@ -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