Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

When using runit, don't try to create the service everytime an action is run on it #496

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion providers/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down