2014-01-08 04:53:39 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module HostArch
|
|
|
|
module Cap
|
|
|
|
class NFS
|
|
|
|
def self.nfs_check_command(env)
|
2016-03-29 09:24:01 +00:00
|
|
|
return "/usr/sbin/systemctl status --no-pager nfs-server.service"
|
2014-01-08 04:53:39 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.nfs_start_command(env)
|
2016-03-29 09:24:01 +00:00
|
|
|
return "/usr/sbin/systemctl start nfs-server.service"
|
2014-01-08 04:53:39 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.nfs_installed(environment)
|
2016-07-23 09:01:34 +00:00
|
|
|
Kernel.system("systemctl --no-pager --no-legend --plain list-unit-files --all --type=service | grep --fixed-strings --quiet nfs-server.service")
|
2014-01-08 04:53:39 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|