- nfs.service got recently removed in openSUSE Tumbleweed and calling service restart nfs errors out on Tumbleweed. nfs.service has been an alias to nfs-client.target for a very long time and can thus be safely substituted. - all actively supported versions of openSUSE & SLE are using systemd now => no reason not to use systemctl
20 lines
416 B
Ruby
20 lines
416 B
Ruby
module VagrantPlugins
|
|
module HostSUSE
|
|
module Cap
|
|
class NFS
|
|
def self.nfs_installed(env)
|
|
system("rpm -q nfs-kernel-server > /dev/null 2>&1")
|
|
end
|
|
|
|
def self.nfs_check_command(env)
|
|
"systemctl status --no-pager nfs-server"
|
|
end
|
|
|
|
def self.nfs_start_command(env)
|
|
"systemctl start --no-pager nfs-server"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|