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 2021-10-23 10:26:42 -04:00
parent 9d7dac3425
commit 12e035b6eb
1 changed files with 1 additions and 1 deletions

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')