Restart NFSd after exporting
This commit is contained in:
parent
5e537f7126
commit
ba78ea86c1
|
@ -21,6 +21,10 @@ module Vagrant
|
|||
# though its executed in multiple subshells.
|
||||
system(%Q[sudo su root -c "echo '#{line}' >> /etc/exports"])
|
||||
end
|
||||
|
||||
# We run restart here instead of "update" just in case nfsd
|
||||
# is not starting
|
||||
system("sudo nfsd restart")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -30,6 +30,7 @@ class BSDHostTest < Test::Unit::TestCase
|
|||
:folders => @folders).returns(output)
|
||||
|
||||
@instance.expects(:system).times(output.split("\n").length)
|
||||
@instance.expects(:system).with("sudo nfsd restart")
|
||||
@instance.nfs_export(@ip, @folders)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue