From 435d7db84a2073cec9614ad62ea179c24f4f92af Mon Sep 17 00:00:00 2001 From: Guido Schoening Date: Sat, 4 Aug 2018 13:27:27 +0200 Subject: stop parsing init script at the "### END INIT INFO" marker. Signed-off-by: Guido Schoening --- lib/chef/provider/service/debian.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/provider/service') 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(" ") -- cgit v1.2.1