fix nfs on gentoo with systemd
This commit is contained in:
parent
de71e269fa
commit
a2985832eb
|
@ -7,7 +7,7 @@ module VagrantPlugins
|
||||||
class NFS
|
class NFS
|
||||||
def self.nfs_check_command(env)
|
def self.nfs_check_command(env)
|
||||||
if systemd?
|
if systemd?
|
||||||
return "#{systemctl_path} status nfsd"
|
return "#{systemctl_path} status nfs-server.service"
|
||||||
else
|
else
|
||||||
return "/etc/init.d/nfs status"
|
return "/etc/init.d/nfs status"
|
||||||
end
|
end
|
||||||
|
@ -15,7 +15,7 @@ module VagrantPlugins
|
||||||
|
|
||||||
def self.nfs_start_command(env)
|
def self.nfs_start_command(env)
|
||||||
if systemd?
|
if systemd?
|
||||||
return "#{systemctl_path} start nfsd rpc-mountd rpcbind"
|
return "#{systemctl_path} start rpcbind nfs-server.service"
|
||||||
else
|
else
|
||||||
return "/etc/init.d/nfs restart"
|
return "/etc/init.d/nfs restart"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue