Skip to content

Commit

Permalink
bugfix #19113 rb-exporter service don't restart/reload when configura…
Browse files Browse the repository at this point in the history
…tion change (table exporter in sensor ips-proxy) restart with chef
  • Loading branch information
PedroLimaRB committed Nov 4, 2024
1 parent 54babaa commit f9f540b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
execute "#{s_action}_#{s}_#{iface_key}" do
command "/bin/env WAIT=1 /etc/init.d/#{s} #{s_action} #{iface_key}"
ignore_failure false
action :immediately
action :nothing
end
end
end
Expand All @@ -54,7 +54,7 @@
execute "iface_restart_#{iface_key}" do
command "ifconfig #{iface_key} down && ifconfig #{iface_key} up"
ignore_failure false
action :immediately
action :nothing
end

template "/etc/sysconfig/network-scripts/ifcfg-#{iface_key}" do
Expand Down Expand Up @@ -166,7 +166,7 @@
service_name 'rb-exporter'
supports status: true, reload: true, restart: true, start: true, enable: true
ignore_failure true
action([:start, :enable])
action([:start, :enable, :restart])
end

Chef::Log.info('rb-exporter cookbook has been processed')
Expand Down

0 comments on commit f9f540b

Please sign in to comment.