Commit 66c42fe4 authored by Tim Smith's avatar Tim Smith
Browse files

Fix the status command default property value



While moving this to chef/chef I added some tests and noticed this makes
no sense. service_dir is a directory and not a service name. This means
we're running /sbin/sv status /etc/service which will always return -1.
Signed-off-by: Tim Smith's avatarTim Smith <tsmith@chef.io>
parent 671c89d8
......@@ -58,7 +58,7 @@ class Chef
property :check_script_template_name, String, default: lazy { service_name }
property :finish_script_template_name, String, default: lazy { service_name }
property :control_template_names, Hash, default: lazy { set_control_template_names }
property :status_command, String, default: lazy { "#{sv_bin} status #{service_dir}" }
property :status_command, String, default: lazy { "#{sv_bin} status #{service_name}" }
property :sv_templates, [TrueClass, FalseClass], default: true
property :sv_timeout, Integer
property :sv_verbose, [TrueClass, FalseClass], default: false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment