Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.476 kb
#!/usr/bin/ruby
require 'mcprovision'
if ARGV.size > 0
configfile = ARGV[0]
else
configfile = "/etc/mcollective/provisioner.yaml"
end
runner = MCProvision::Runner.new(configfile)
begin
if runner.config.settings["daemonize"] || false
MCProvision::Util.daemonize do
runner.run
end
else
runner.run
end
rescue Exception => e
MCProvision.info("Runner failed unexpectedly: #{e.class}: #{e}")
sleep 5
retry
end
Jump to Line
Something went wrong with that request. Please try again.