Method: Chef::Provider::Service::Upstart#disable_service
- Defined in:
- lib/chef/provider/service/upstart.rb
#disable_service ⇒ Object
225 226 227 228 229 230 |
# File 'lib/chef/provider/service/upstart.rb', line 225 def disable_service logger.trace("#{@new_resource} upstart lacks inherent support for disabling services, editing job config file") conf = Chef::Util::FileEdit.new("#{@upstart_job_dir}/#{@new_resource.service_name}#{@upstart_conf_suffix}") conf.search_file_replace(/^start on/, "#start on") conf.write_file end |