Merge pull request #7270 from lpenz/nfspager

Do not let NFS systemctl status use a pager
This commit is contained in:
Seth Vargo 2016-06-06 19:11:41 -04:00
commit 01e91882f0
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports
Cmnd_Alias VAGRANT_NFSD_CHECK = /usr/bin/systemctl status nfs-server.service
Cmnd_Alias VAGRANT_NFSD_CHECK = /usr/bin/systemctl status --no-pager nfs-server.service
Cmnd_Alias VAGRANT_NFSD_START = /usr/bin/systemctl start nfs-server.service
Cmnd_Alias VAGRANT_NFSD_APPLY = /usr/sbin/exportfs -ar
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /bin/sed -r -e * d -ibak /*/exports

View File

@ -4,7 +4,7 @@ module VagrantPlugins
class NFS
def self.nfs_check_command(env)
if systemd?
return "/usr/sbin/systemctl status nfs-server.service"
return "/usr/sbin/systemctl status --no-pager nfs-server.service"
else
return "/etc/rc.d/nfs-server status"
end

View File

@ -7,7 +7,7 @@ module VagrantPlugins
class NFS
def self.nfs_check_command(env)
if systemd?
return "#{systemctl_path} status nfs-server.service"
return "#{systemctl_path} status --no-pager nfs-server.service"
else
return "/etc/init.d/nfs status"
end