diff options
author | Guido Schoening <guido.schoening@jambit.com> | 2018-08-04 13:27:27 +0200 |
---|---|---|
committer | Guido Schoening <guido.schoening@jambit.com> | 2018-08-04 13:27:27 +0200 |
commit | 435d7db84a2073cec9614ad62ea179c24f4f92af (patch) | |
tree | 6a020344a2f848cf22bab43cbac588764dca3d49 /lib | |
parent | 628b6189201c532ae0e3ff962b324018911ff389 (diff) | |
download | chef-435d7db84a2073cec9614ad62ea179c24f4f92af.tar.gz |
stop parsing init script at the "### END INIT INFO" marker.
Signed-off-by: Guido Schoening <guido.schoeing@gmail.com>
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(" ") |