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:
parent
9d7dac3425
commit
12e035b6eb
|
@ -259,7 +259,7 @@ class Machine:
|
||||||
async def _find_active_services(self):
|
async def _find_active_services(self):
|
||||||
shell_cmd: SCMDComp = self.server.lookup_component('shell_command')
|
shell_cmd: SCMDComp = self.server.lookup_component('shell_command')
|
||||||
scmd = shell_cmd.build_shell_command(
|
scmd = shell_cmd.build_shell_command(
|
||||||
"systemctl list-units --type=service")
|
"systemctl list-units --all --type=service")
|
||||||
try:
|
try:
|
||||||
resp = await scmd.run_with_response()
|
resp = await scmd.run_with_response()
|
||||||
lines = resp.split('\n')
|
lines = resp.split('\n')
|
||||||
|
|
Loading…
Reference in New Issue