Skip to content

Commit

Permalink
reload autofs immediately after configuration change
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Gruenewald committed Jul 23, 2013
1 parent 55f6893 commit 0ebf272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions opsworks_ganglia/recipes/bind-mount-data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
handle_to_map_file.insert_line_if_no_match(node[:ganglia][:datadir], node[:ganglia][:autofs_entry])
handle_to_map_file.write_file
end
end

service "autofs" do
action :reload
notifies :reload, "service[autofs]", :immediately
end
2 changes: 1 addition & 1 deletion opsworks_initial_setup/recipes/autofs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
)
handle_to_master.write_file
end
notifies :reload, "service[autofs]"
notifies :reload, "service[autofs]", :immediately
end

0 comments on commit 0ebf272

Please sign in to comment.