summaryrefslogtreecommitdiff
path: root/lib/chef/application/windows_service.rb
diff options
context:
space:
mode:
authorMarc Chamberland <chamberland.marc@gmail.com>2019-11-05 13:24:56 -0500
committerMarc Chamberland <chamberland.marc@gmail.com>2019-12-05 08:47:17 -0500
commite1a8a9d22f587e514b208d747d86a64979bad8db (patch)
tree182138f38a05c4dd8cef8a7d74f5366ab242fa05 /lib/chef/application/windows_service.rb
parent1befa58bc9340040028aeee3f6368f0e014b9366 (diff)
downloadchef-e1a8a9d22f587e514b208d747d86a64979bad8db.tar.gz
inserting distro constants into windows service messages
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Diffstat (limited to 'lib/chef/application/windows_service.rb')
-rw-r--r--lib/chef/application/windows_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/application/windows_service.rb b/lib/chef/application/windows_service.rb
index 04a8812efc..aeded0bc45 100644
--- a/lib/chef/application/windows_service.rb
+++ b/lib/chef/application/windows_service.rb
@@ -40,7 +40,7 @@ class Chef
option :config_file,
short: "-c CONFIG",
long: "--config CONFIG",
- default: "#{ENV["SYSTEMDRIVE"]}/chef/client.rb",
+ default: "#{Chef::Config::etc_chef_dir}/client.rb",
description: "The configuration file to use for #{Chef::Dist::PRODUCT} runs."
option :log_location,
@@ -60,7 +60,7 @@ class Chef
description: "Set the number of seconds to wait between #{Chef::Dist::PRODUCT} runs.",
proc: lambda { |s| s.to_i }
- DEFAULT_LOG_LOCATION ||= "#{ENV["SYSTEMDRIVE"]}/chef/client.log".freeze
+ DEFAULT_LOG_LOCATION ||= "#{Chef::Config::c_chef_dir}/client.log".freeze
def service_init
@service_action_mutex = Mutex.new