@@ -57,13 +57,13 @@ class RunitService < Chef::Resource::Service
5757 property :check_script_template_name , String , default : lazy { service_name }
5858 property :finish_script_template_name , String , default : lazy { service_name }
5959 property :control_template_names , Hash , default : lazy { set_control_template_names }
60- property :status_command , String , default : lazy { "#{ sv_bin } status #{ service_name } " }
6160 property :start_command , String , default : 'start'
6261 property :stop_command , String , default : 'stop'
6362 property :restart_command , String , default : 'restart'
63+ property :status_command , String , default : 'status'
6464 property :sv_templates , [ true , false ] , default : true
6565 property :sv_timeout , Integer
66- property :sv_verbose , [ TrueClass , FalseClass ] , default : false
66+ property :sv_verbose , [ true , false ] , default : false
6767 property :log_dir , String , default : lazy { ::File . join ( '/var/log/' , service_name ) }
6868 property :log_flags , String , default : '-tt'
6969 property :log_size , Integer
@@ -103,10 +103,10 @@ def after_created
103103 find_resource ( :service , new_resource . name ) do # creates if it does not exist
104104 provider Chef ::Provider ::Service ::Simple
105105 supports new_resource . supports
106- status_command new_resource . status_command
107106 start_command "#{ new_resource . sv_bin } #{ new_resource . start_command } #{ service_dir_name } "
108107 stop_command "#{ new_resource . sv_bin } #{ new_resource . stop_command } #{ service_dir_name } "
109108 restart_command "#{ new_resource . sv_bin } #{ new_resource . restart_command } #{ service_dir_name } "
109+ status_command "#{ new_resource . sv_bin } #{ new_resource . status_command } #{ service_dir_name } "
110110 action :nothing
111111 end
112112 end
0 commit comments