The first step is to take a look at the logs when you run chef-client.
Do you see it saying 'executing resource bash[ldconfig] anywhere?
note that if one of my guys handed me that, i’d ask them to replace the
bash resource with an execute resource.
Because you don’t have an action :nothing on the bash resource, it should
be running every time, which should help diagnose further.
On Mon, Feb 4, 2013 at 9:49 AM, firstname.lastname@example.org wrote:
Code snippets are from default.rb
Hi, I’m adding a file to ld.so.conf.d:
file ::File.join("/etc/ld.so.conf.d", “my.conf”) do
notifies :run, "bash[ldconfig]"
bash “ldconfig” do
The ldconfig doesn’t get called (at least not after the file creation).
I tried running a “command” and also “bash” as posted.
Appreciate any help.