summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service/init.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/service/init.rb')
-rw-r--r--lib/chef/provider/service/init.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/provider/service/init.rb b/lib/chef/provider/service/init.rb
index 5d8bb5bb38..ab40a720f6 100644
--- a/lib/chef/provider/service/init.rb
+++ b/lib/chef/provider/service/init.rb
@@ -26,6 +26,8 @@ class Chef
attr_accessor :init_command
+ provides :service, os: "!windows"
+
def initialize(new_resource, run_context)
super
@init_command = "/etc/init.d/#{@new_resource.service_name}"