Commit 44ebd3f4 by Charles Duffy

systemd template services must not discard template part

parent d3cbde57
...@@ -410,11 +410,13 @@ class LinuxService(Service): ...@@ -410,11 +410,13 @@ class LinuxService(Service):
# adjust the service name to account for template service unit files # adjust the service name to account for template service unit files
index = name.find('@') index = name.find('@')
if index != -1: if index != -1:
name = name[:index+1] template_name = name[:index+1]
else:
template_name = name
self.__systemd_unit = None self.__systemd_unit = None
for line in out.splitlines(): for line in out.splitlines():
if line.startswith(name): if line.startswith(template_name):
self.__systemd_unit = name self.__systemd_unit = name
return True return True
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment