From d2b65a9efa54576ae2738cf3c2720f7e194b4bc4 Mon Sep 17 00:00:00 2001 From: Alexander Kurilo Date: Fri, 18 Jul 2014 19:06:40 +0300 Subject: [PATCH] Fix NFS server running and status check According to https://wiki.archlinux.org/index.php/NFS#Starting_the_server --- plugins/hosts/arch/cap/nfs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hosts/arch/cap/nfs.rb b/plugins/hosts/arch/cap/nfs.rb index 369fc7036..6de645237 100644 --- a/plugins/hosts/arch/cap/nfs.rb +++ b/plugins/hosts/arch/cap/nfs.rb @@ -4,7 +4,7 @@ module VagrantPlugins class NFS def self.nfs_check_command(env) if systemd? - return "/usr/sbin/systemctl status nfsd" + return "/usr/sbin/systemctl status nfs-server.service" else return "/etc/rc.d/nfs-server status" end @@ -12,7 +12,7 @@ module VagrantPlugins def self.nfs_start_command(env) if systemd? - return "/usr/sbin/systemctl start nfsd rpc-idmapd rpc-mountd rpcbind" + return "/usr/sbin/systemctl start nfs-server.service" else return "sh -c 'for s in {rpcbind,nfs-common,nfs-server}; do /etc/rc.d/$s start; done'" end