diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-18 17:08:28 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-18 17:08:28 +0000 |
| commit | fe2f0d9ffc2c3fd324d9f85d57ff6a7262a3b185 (patch) | |
| tree | ef434ddd2165cf5cec88d576d8a48cc6047be400 /bin/puppetd | |
| parent | 5257837ecb85fd37553430fe5e5030d775dbb7bb (diff) | |
| download | puppet-fe2f0d9ffc2c3fd324d9f85d57ff6a7262a3b185.tar.gz puppet-fe2f0d9ffc2c3fd324d9f85d57ff6a7262a3b185.tar.xz puppet-fe2f0d9ffc2c3fd324d9f85d57ff6a7262a3b185.zip | |
Fixing #533 -- puppetd now exits in onetime mode.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2289 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin/puppetd')
| -rwxr-xr-x | bin/puppetd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/puppetd b/bin/puppetd index 66f35551c..fac30f345 100755 --- a/bin/puppetd +++ b/bin/puppetd @@ -214,6 +214,7 @@ begin Puppet.config.handlearg("--ignorecache") Puppet.config.handlearg("--no-usecacheonfailure") options[:onetime] = true + options[:waitforcert] = 0 unless Puppet::Util::Log.level == :debug Puppet::Util::Log.level = :info end @@ -242,6 +243,7 @@ begin options[:client] = false when "--onetime" options[:onetime] = true + options[:waitforcert] = 0 when "--port" args[:Port] = arg when "--logdest" @@ -320,7 +322,7 @@ if options[:daemonize] client.daemonize end -unless client.cert +unless client.read_cert # If we don't already have the certificate, then create a client to # request one. Use the special ca stuff, don't use the normal server and port. caclient = Puppet::Network::Client.ca.new() |
