I use supervisor and I want to restart a service e.g…
bash “restart_supervisorctl_master” do
sudo supervisorctl restart master_server:
template “/etc/supervisor/conf.d/master.conf” do
variables :version => version
notifies :run, ‘bash[restart_supervisorctl_master]’, :delayed
But if I wanted to restart supervisor I would the below but would restart
every service in supervisor.
notifies :restart, resources(:service => “supervisord”)
So…it there a more chefonic method for defining a service for
supervisorctl so I can restart using notifies :restart, resources(:service
=> “supervisorctl master_server”)?