@@ -57,13 +57,13 @@ class RunitService < Chef::Resource::Service
57
57
property :check_script_template_name , String , default : lazy { service_name }
58
58
property :finish_script_template_name , String , default : lazy { service_name }
59
59
property :control_template_names , Hash , default : lazy { set_control_template_names }
60
- property :status_command , String , default : lazy { "#{ sv_bin } status #{ service_name } " }
61
60
property :start_command , String , default : 'start'
62
61
property :stop_command , String , default : 'stop'
63
62
property :restart_command , String , default : 'restart'
63
+ property :status_command , String , default : 'status'
64
64
property :sv_templates , [ true , false ] , default : true
65
65
property :sv_timeout , Integer
66
- property :sv_verbose , [ TrueClass , FalseClass ] , default : false
66
+ property :sv_verbose , [ true , false ] , default : false
67
67
property :log_dir , String , default : lazy { ::File . join ( '/var/log/' , service_name ) }
68
68
property :log_flags , String , default : '-tt'
69
69
property :log_size , Integer
@@ -103,10 +103,10 @@ def after_created
103
103
find_resource ( :service , new_resource . name ) do # creates if it does not exist
104
104
provider Chef ::Provider ::Service ::Simple
105
105
supports new_resource . supports
106
- status_command new_resource . status_command
107
106
start_command "#{ new_resource . sv_bin } #{ new_resource . start_command } #{ service_dir_name } "
108
107
stop_command "#{ new_resource . sv_bin } #{ new_resource . stop_command } #{ service_dir_name } "
109
108
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 } "
110
110
action :nothing
111
111
end
112
112
end
0 commit comments