diff --git a/lib/puppet/provider/service/gentoo.rb b/lib/puppet/provider/service/gentoo.rb
index <HASH>..<HASH> 100644
--- a/lib/puppet/provider/service/gentoo.rb
+++ b/lib/puppet/provider/service/gentoo.rb
@@ -38,7 +38,7 @@ Puppet::Type.type(:service).provide :gentoo, :parent => :init do
         return :false unless line
 
         # If it's enabled then it will print output showing service | runlevel
-        if output =~ /#{@resource[:name]}\s*\|\s*(boot|default)/
+        if output =~ /^\s*#{@resource[:name]}\s*\|\s*(boot|default)/    
             return :true
         else
             return :false
Fixes #<I> - service provider for gentoo fails with ambiguous suffixes