hosts/gentoo: use subprocess machinery

/cc @timgus
This commit is contained in:
Mitchell Hashimoto 2013-10-17 08:32:09 -10:00
parent cae8cd4f9f
commit 673a06b54d
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
require "vagrant"
require "vagrant/util/subprocess"
require Vagrant.source_root.join("plugins/hosts/linux/host")
@ -31,7 +32,8 @@ module VagrantPlugins
# Check for systemd presence from current processes.
def systemd?
`ps -o comm= 1`.chomp == 'systemd'
result = Vagrant::Util::Subprocess.execute("ps", "-o", "comm=", "1")
return result.stdout.chomp == "systemd"
end
end
end