From 32620cab4dd7ae726655e869c57f378568b8a611 Mon Sep 17 00:00:00 2001 From: Charles Duffy Date: Fri, 7 Mar 2014 18:52:47 -0600 Subject: [PATCH] systemd template services must not discard template part --- system/service | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/service b/system/service index 2e26a47b636..fd3bc8d2434 100644 --- a/system/service +++ b/system/service @@ -410,11 +410,13 @@ class LinuxService(Service): # adjust the service name to account for template service unit files index = name.find('@') if index != -1: - name = name[:index+1] + template_name = name[:index+1] + else: + template_name = name self.__systemd_unit = None for line in out.splitlines(): - if line.startswith(name): + if line.startswith(template_name): self.__systemd_unit = name return True return False