|
|
|
@ -514,6 +514,7 @@ class LinuxService(Service):
|
|
|
|
value_buffer = []
|
|
|
|
value_buffer = []
|
|
|
|
status_dict = {}
|
|
|
|
status_dict = {}
|
|
|
|
for line in out.splitlines():
|
|
|
|
for line in out.splitlines():
|
|
|
|
|
|
|
|
if '=' in line:
|
|
|
|
if not key:
|
|
|
|
if not key:
|
|
|
|
key, value = line.split('=', 1)
|
|
|
|
key, value = line.split('=', 1)
|
|
|
|
# systemd fields that are shell commands can be multi-line
|
|
|
|
# systemd fields that are shell commands can be multi-line
|
|
|
|
@ -535,6 +536,8 @@ class LinuxService(Service):
|
|
|
|
key = None
|
|
|
|
key = None
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
value_buffer.append(value)
|
|
|
|
value_buffer.append(value)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
value_buffer.append(value)
|
|
|
|
|
|
|
|
|
|
|
|
return status_dict
|
|
|
|
return status_dict
|
|
|
|
|
|
|
|
|
|
|
|
|