Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 476 Bytes
#!/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
Something went wrong with that request. Please try again.