Method: Puppet::Daemon#stop

Defined in:
lib/puppet/daemon.rb

#stop(args = { :exit => true }) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Stop everything



130
131
132
133
134
135
136
137
138
# File 'lib/puppet/daemon.rb', line 130

def stop(args = { :exit => true })
  Puppet::Application.stop!

  remove_pidfile

  Puppet::Util::Log.close_all

  exit if args[:exit]
end