diff options
author | Tim Smith <tsmith@chef.io> | 2018-08-06 21:58:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-06 21:58:54 -0700 |
commit | ca2fcd2aa8785fdab57b0e92cfc27c1b92164d5f (patch) | |
tree | 518d6b12b4d18d3207463319be1f2e51123f6236 /lib | |
parent | d4a7016f8223a46faa41ff7df941db4ddda5e813 (diff) | |
parent | 435d7db84a2073cec9614ad62ea179c24f4f92af (diff) | |
download | chef-ca2fcd2aa8785fdab57b0e92cfc27c1b92164d5f.tar.gz |
Merge pull request #7525 from goblin23/master
stop parsing init script at the "### END INIT INFO" marker.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/service/debian.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/debian.rb b/lib/chef/provider/service/debian.rb index 09af9f224f..351075111b 100644 --- a/lib/chef/provider/service/debian.rb +++ b/lib/chef/provider/service/debian.rb @@ -78,7 +78,7 @@ class Chef if line =~ /^### BEGIN INIT INFO/ in_info = true elsif line =~ /^### END INIT INFO/ - in_info = false + break acc elsif in_info if line =~ /Default-(Start|Stop):\s+(\d.*)/ acc << $2.split(" ") |