72: def setup
73: unless Puppet.features.stomp?
74: raise ArgumentError, "Could not load the 'stomp' library, which must be present for queueing to work. You must install the required library."
75: end
76:
77: setup_logs
78:
79: exit(Puppet.settings.print_configs ? 0 : 1) if Puppet.settings.print_configs?
80:
81: require 'puppet/resource/catalog'
82: Puppet::Resource::Catalog.terminus_class = :active_record
83:
84: daemon.daemonize if Puppet[:daemonize]
85:
86:
87:
88:
89:
90: Puppet::Resource::Catalog.cache_class = nil
91: end