Method: Puppet::Daemon#initialize
- Defined in:
- lib/puppet/daemon.rb
#initialize(agent, pidfile, scheduler = Puppet::Scheduler::Scheduler.new()) ⇒ Daemon
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.
Returns a new instance of Daemon.
27 28 29 30 31 32 33 34 |
# File 'lib/puppet/daemon.rb', line 27 def initialize(agent, pidfile, scheduler = Puppet::Scheduler::Scheduler.new()) raise Puppet::DevError, _("Daemons must have an agent") unless agent @scheduler = scheduler @pidfile = pidfile @agent = agent @signals = [] end |