summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/platform/service_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/platform/service_helpers.rb b/lib/chef/platform/service_helpers.rb
index ca0ed063da..1fcea44bcd 100644
--- a/lib/chef/platform/service_helpers.rb
+++ b/lib/chef/platform/service_helpers.rb
@@ -102,7 +102,7 @@ class Chef
def has_systemd_service_unit?(svc_name)
%w( /etc /run /usr/lib ).any? do |cfg_base|
- ::File.exist?("#{cfg_base}/systemd/system/#{svc_name}.service")
+ ::File.exist?("#{cfg_base}/systemd/system/#{svc_name.gsub(/@.*$/, '@')}.service")
end
end
end