Jaymon / chef-cookbooks

Various Chef cookbooks
MIT License
2 stars 0 forks source link

Re-add starting/stopping all services #25

Open Jaymon opened 4 years ago

Jaymon commented 4 years ago

I removed being able to start and stop all configured services from uwsgi and daemon, it would be nice to put those back in at some point

Jaymon commented 4 years ago

This was in the uwsgi default recipe:

# TODO -- March 2020, this was removed when systemd support was added, hopefully it can
# be added back in the future
# global script that will start/stop/restart all servers at once
# service name do
#   service_name name
#   provider Chef::Provider::Service::Upstart
#   action :nothing
#   supports :status => true, :start => true, :stop => true, :restart => true
# end
# 
# template ::File.join("", "etc", "init", "#{name}.conf") do
#   source "servers.conf.erb"
#   mode "0644"
#   variables({"server_names" => n['servers'].keys})
#   notifies :start, "service[#{name}]", :delayed
# end