Resources added by custom lwrp not running


#1

I’m trying to use the bluepill recipe from
https://github.com/opscode/cookbooks/tree/master/bluepill

It’s working great for the basic case. However because I’m doing some
symlink magic I need bluepill to reload when the symlinks change. So
I’ve added the following “reload” action to
bluepill/providers/service.rb (
https://github.com/opscode/cookbooks/blob/master/bluepill/providers/service.rb
).

action :reload do
if @bp.running
execute "echo ‘doing restart’ >>
/tmp/debug;#{node[‘bluepill’][‘bin’]} #{new_resource.service_name}
stop"
end
execute "echo ‘doing reload’ >>
/tmp/debug;#{node[‘bluepill’][‘bin’]} load
#{node[‘bluepill’][‘conf_dir’]}/#{new_resource.service_name}.pill"
end

This is modeled after the other actions in the provider and I have
verified that the action is processed. However the ‘execute’ resources
created by this action are never processed. So far digging around with
the debugger, print statements, and every thing else I can think of
hasn’t gotten me any where.

Any suggestions how I can debug this or why the ‘execute’ resources
aren’t getting processed.

Thanks
Brian