diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-02-12 17:12:46 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-02-12 21:05:05 -0800 |
commit | c90b1c881bcbba19f5a45a675557f6566b137935 (patch) | |
tree | 49b539cbf42926126bf9fea39430816fa25253dd /lib/chef | |
parent | 2a8d93f2def9d412171610242c7bb4ac45bce863 (diff) | |
download | chef-c90b1c881bcbba19f5a45a675557f6566b137935.tar.gz |
Remove an Upstart check for Ubuntu 8.04-9.04legacy_upstart
No need to do this anymore
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/provider/service/upstart.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/chef/provider/service/upstart.rb b/lib/chef/provider/service/upstart.rb index 2b9e304160..e37bb3ff65 100644 --- a/lib/chef/provider/service/upstart.rb +++ b/lib/chef/provider/service/upstart.rb @@ -65,15 +65,8 @@ class Chef end end - platform, version = Chef::Platform.find_platform_and_version(run_context.node) - if platform == "ubuntu" && (8.04..9.04).cover?(version.to_f) - @upstart_job_dir = "/etc/event.d" - @upstart_conf_suffix = "" - else - @upstart_job_dir = "/etc/init" - @upstart_conf_suffix = ".conf" - end - + @upstart_job_dir = "/etc/init" + @upstart_conf_suffix = ".conf" @command_success = true # new_resource.status_command= false, means upstart used @config_file_found = true @upstart_command_success = true |