From f7dcb6dcc8b44cd0e2b88083b1e60c2dcf693d0c Mon Sep 17 00:00:00 2001 From: Antoine Reversat Date: Mon, 6 May 2019 12:35:34 -0400 Subject: [PATCH 1/2] Make sure we don't execute the default runit service action (enable) when creating the runit service to run another action --- providers/service.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/providers/service.rb b/providers/service.rb index 1ae05e0..dfb9e27 100644 --- a/providers/service.rb +++ b/providers/service.rb @@ -226,7 +226,9 @@ def service_action(action) end when 'runit' @run_context.include_recipe 'runit::default' - sv = runit_service svc[:service_name] + sv = runit_service svc[:service_name] do + action(:nothing) + end end sv.run_action(action) sv.updated_by_last_action? From 89e6f34e3314554096d8ddfdcc328bc253d425e3 Mon Sep 17 00:00:00 2001 From: Antoine Reversat Date: Mon, 6 May 2019 12:45:30 -0400 Subject: [PATCH 2/2] Fix indentation --- providers/service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/service.rb b/providers/service.rb index dfb9e27..595d42a 100644 --- a/providers/service.rb +++ b/providers/service.rb @@ -227,7 +227,7 @@ def service_action(action) when 'runit' @run_context.include_recipe 'runit::default' sv = runit_service svc[:service_name] do - action(:nothing) + action(:nothing) end end sv.run_action(action)