diff options
author | Lamont Granquist <lamont@opscode.com> | 2012-11-01 13:45:27 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@opscode.com> | 2012-11-01 15:00:36 -0700 |
commit | 5a75962216886c1b1173c82e6fe71e406cddd45d (patch) | |
tree | 610c233f3251ca812c1d537f8e947f3a7d1f96c8 /lib/chef/application/client.rb | |
parent | 29173a2b8e8014d983ec20cd8a2ebf967dd51fb5 (diff) | |
download | chef-5a75962216886c1b1173c82e6fe71e406cddd45d.tar.gz |
removing daemonize option for windows
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r-- | lib/chef/application/client.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index ef40a7a358..3ab9a57c97 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -81,11 +81,13 @@ class Chef::Application::Client < Chef::Application :description => "Group to set privilege to", :proc => nil - option :daemonize, - :short => "-d", - :long => "--daemonize", - :description => "Daemonize the process", - :proc => lambda { |p| true } + unless Chef::Platform.windows? + option :daemonize, + :short => "-d", + :long => "--daemonize", + :description => "Daemonize the process", + :proc => lambda { |p| true } + end option :pid_file, :short => "-P PID_FILE", |