From 12e035b6eb45bfa2be0c1e08e1eddd29a956868c Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sat, 23 Oct 2021 10:26:42 -0400 Subject: [PATCH] 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 --- moonraker/components/machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/machine.py b/moonraker/components/machine.py index cdd3730..4a51eaa 100644 --- a/moonraker/components/machine.py +++ b/moonraker/components/machine.py @@ -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')