2018-07-11 22:40:33 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module HostVoid
|
|
|
|
module Cap
|
|
|
|
class NFS
|
|
|
|
def self.nfs_check_command(env)
|
|
|
|
"/usr/bin/sv status nfs-server"
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.nfs_start_command(env)
|
2018-07-12 22:08:05 +00:00
|
|
|
<<-EOF
|
|
|
|
/usr/bin/ln -s /etc/sv/statd /var/service/ && \
|
|
|
|
/usr/bin/ln -s /etc/sv/rpcbind /var/service/ && \
|
|
|
|
/usr/bin/ln -s /etc/sv/nfs-server /var/service/
|
|
|
|
EOF
|
2018-07-11 22:40:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.nfs_installed(env)
|
|
|
|
Kernel.system("/usr/bin/xbps-query nfs-utils", [:out, :err] => "/dev/null")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|