lib/puppet/application/master.rb
# Start a master that will be using WeBrick.
#
# This method will block until the master exits.
Start a master that will be using WeBrick.
This method will block until the master exits.
Start a master that will be using WeBrick . This method will block until the master exits .
def start_webrick_master
    require 'puppet/network/server'
    daemon = Puppet::Daemon.new(Puppet::Util::Pidlock.new(Puppet[:pidfile]))
    daemon.argv = @argv
    daemon.server = Puppet::Network::Server.new(Puppet[:bindaddress], Puppet[:masterport])
    daemon.daemonize if Puppet[:daemonize]
    daemon.set_signal_traps
    announce_start_of_master
    daemon.start
  end
def start_webrick_master require 'puppet/network/server' daemon = Puppet :: Daemon . new ( Puppet :: Util :: Pidlock . new ( Puppet [ :pidfile ] ) ) daemon . argv = @argv daemon . server = Puppet :: Network :: Server . new ( Puppet [ :bindaddress ] , Puppet [ :masterport ] ) daemon . daemonize if Puppet [ :daemonize ] daemon . set_signal_traps announce_start_of_master daemon . start end
Start a master that will be using WeBrick.
Start a master that will be using WeBrick .
# Setup signal traps immediately after daemonization so we clean up the daemon