# File lib/puppet/agent.rb, line 61 61: def stop 62: if self.stopping? 63: Puppet.notice "Already in shutdown" 64: return 65: end 66: self.stopping = true 67: if client and client.respond_to?(:stop) 68: begin 69: client.stop 70: rescue 71: puts detail.backtrace if Puppet[:trace] 72: Puppet.err "Could not stop %s: %s" % [client_class, detail] 73: end 74: end 75: ensure 76: self.stopping = false 77: end