summaryrefslogtreecommitdiff
path: root/chef/bin/chef-client
diff options
context:
space:
mode:
authorMatthew Kent <mkent@magoazul.com>2009-04-10 17:36:58 -0700
committerMatthew Kent <mkent@magoazul.com>2009-04-14 22:57:33 -0700
commit47a51b6a0f05cfe9ee949a5004e88f474639ba48 (patch)
tree293f1ccd6d56a10b97037944711ba2571e168689 /chef/bin/chef-client
parent2b8efe384d39f64049fa9c3ecb609d02c619892b (diff)
downloadchef-47a51b6a0f05cfe9ee949a5004e88f474639ba48.tar.gz
drop privileges prior to writing logs
Diffstat (limited to 'chef/bin/chef-client')
-rwxr-xr-xchef/bin/chef-client2
1 files changed, 2 insertions, 0 deletions
diff --git a/chef/bin/chef-client b/chef/bin/chef-client
index df06e068fd..1c1b38bd19 100755
--- a/chef/bin/chef-client
+++ b/chef/bin/chef-client
@@ -79,6 +79,8 @@ end
Chef::Config.from_file(config[:config_file])
Chef::Config.configure { |c| c.merge!(config) }
+Chef::Daemon.change_privilege
+
if Chef::Config[:daemonize]
unless Chef::Config[:log_location].is_a? IO
Chef::Log.init(Chef::Config[:log_location])