machine: list all active units

This resolves an issue where an allowed service is not
tagged as available if it is not loaded when moonraker
starts.

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan committed 2021-10-24 08:45:28 -04:00
1 parent 9d7dac3425
commit 12e035b6eb
1 file changed
+1 -1
+1 -1
View File
@@ -259,7 +259,7 @@ class Machine:
async def _find_active_services(self):
shell_cmd: SCMDComp = self.server.lookup_component('shell_command')
scmd = shell_cmd.build_shell_command(
"systemctl list-units --type=service")
"systemctl list-units --all --type=service")
try:
resp = await scmd.run_with_response()
lines = resp.split('\n')