diff --git a/libraries/helpers.rb b/libraries/helpers.rb index 0eedf00b..f18832f7 100644 --- a/libraries/helpers.rb +++ b/libraries/helpers.rb @@ -101,6 +101,7 @@ def default_vault_unit_content 'StartLimitBurst' => 3, }, 'Service' => { + 'Type' => 'exec', 'User' => user, 'Group' => group, 'ProtectSystem' => 'full', diff --git a/resources/service.rb b/resources/service.rb index b11eced9..c47cc809 100644 --- a/resources/service.rb +++ b/resources/service.rb @@ -58,6 +58,8 @@ def do_service_action(resource_action) with_run_context(:root) do edit_resource(:service, new_resource.service_name.delete_suffix('.service')) do + supports status: true, restart: true, reload: true + action :nothing delayed_action resource_action end