Skip to content

Commit

Permalink
Merge pull request #46 from webcoyote/runit_delayed_restart
Browse files Browse the repository at this point in the history
Delay runit restart on config file change
  • Loading branch information
reset committed Sep 19, 2014
2 parents 16578bd + 5de1a16 commit edfe26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
runit_service 'consul' do
supports status: true, restart: true, reload: true
action [:enable, :start]
subscribes :restart, "file[#{consul_config_filename}]", :immediately
subscribes :restart, "file[#{consul_config_filename}]", :delayed
log true
options(
consul_binary: "#{node['consul']['install_dir']}/consul",
Expand Down

0 comments on commit edfe26e

Please sign in to comment.