diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-30 06:46:20 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-30 06:46:20 +0000 |
commit | 727672fbfb1099fea1e3d6eb8ea8ad5f8f5b6e58 (patch) | |
tree | d448f6f7381630d4f513509027a3774497845f0b | |
parent | af3863ea9fd26fd8594262583bf47c211668631e (diff) | |
download | puppet-727672fbfb1099fea1e3d6eb8ea8ad5f8f5b6e58.tar.gz puppet-727672fbfb1099fea1e3d6eb8ea8ad5f8f5b6e58.tar.xz puppet-727672fbfb1099fea1e3d6eb8ea8ad5f8f5b6e58.zip |
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
-rwxr-xr-x | bin/puppetd | 8 |
1 files 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) |