use in nailgun-agent a kind of the following check: def get_mco_status Process.kill 0, %x(status mcollective).split.last.to_i rescue 0 end
# returns 1 if process found and active, otherwise 0
use in nailgun-agent a kind of the following check: .split. last.to_ i
def get_mco_status
Process.kill 0, %x(status mcollective)
rescue
0
end
# returns 1 if process found and active, otherwise 0