From 727672fbfb1099fea1e3d6eb8ea8ad5f8f5b6e58 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 30 Jan 2007 06:46:20 +0000 Subject: Not creating the listening server at all if --onetime is enabled. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2121 980ebf18-57e1-0310-9a29-db15c13687c0 --- bin/puppetd | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/puppetd b/bin/puppetd index b1194cc95..ddcaadfd6 100755 --- a/bin/puppetd +++ b/bin/puppetd @@ -355,7 +355,7 @@ end objects = [] # This has to go after the certs are dealt with. -if Puppet[:listen] +if Puppet[:listen] and ! options[:onetime] unless FileTest.exists?(Puppet[:authconfig]) Puppet.err "Will not start without authorization file %s" % Puppet[:authconfig] @@ -395,6 +395,8 @@ if Puppet[:listen] end objects << server +elsif options[:onetime] + Puppet.notice "Ignoring --listen on onetime run" end # now set up the network client with the certs, now that we have them @@ -415,10 +417,6 @@ if options[:onetime] exit(43) end - if server - Puppet.notice "Ignoring --listen on onetime run" - end - # Add the service, so the traps work correctly. Puppet.newservice(client) -- cgit