Include some more systemd information in the data structure

This commit is contained in:
Matthew Jones 2015-03-23 12:08:42 -04:00
parent dd44c0a0f2
commit 5f66fbb7c4

View File

@ -100,7 +100,9 @@ class SystemctlScanService(BaseService):
line_data = line.split()
if len(line_data) != 2:
continue
services[line_data[0]] = {"name": line_data[0], "state": "running" if line_data[1] == "enabled" else "stopped"}
services[line_data[0]] = {"name": line_data[0],
"state": "running" if line_data[1] == "enabled" else "stopped",
"source": "systemd"}
return services
def main():