This repository was archived by the owner on Dec 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -37,19 +37,19 @@ def load_current_resource
3737end
3838
3939action :restart do
40- service_action ( :restart )
40+ new_resource . updated_by_last_action ( service_action ( :restart ) )
4141end
4242
4343action :start do
44- service_action ( :start )
44+ new_resource . updated_by_last_action ( service_action ( :start ) )
4545end
4646
4747action :stop do
48- service_action ( :stop )
48+ new_resource . updated_by_last_action ( service_action ( :stop ) )
4949end
5050
5151action :reload do
52- service_action ( :reload )
52+ new_resource . updated_by_last_action ( service_action ( :reload ) )
5353end
5454
5555action :enable do
@@ -217,14 +217,12 @@ def service_action(action)
217217 else
218218 sv . provider ( Chef ::Provider ::Service ::Init )
219219 end
220- sv . run_action ( action )
221- new_resource . updated_by_last_action ( sv . updated_by_last_action? )
222220 when 'runit'
223221 @run_context . include_recipe 'runit::default'
224222 sv = runit_service svc [ :service_name ]
225- sv . run_action ( action )
226- new_resource . updated_by_last_action ( sv . updated_by_last_action? )
227223 end
224+ sv . run_action ( action )
225+ sv . updated_by_last_action?
228226end
229227
230228def svc_vars
You can’t perform that action at this time.
0 commit comments