I patched the code to add "-n 0 --no-pager" and remove "sudo" when calling "systemctl status"[1].
Now I see the following defunct process:
maas 24458 0.0 0.0 0 0 ? Z 23:48 0:00 | \_ [systemctl] <defunct>
So I've ruled out `sudo`, the pager (which shouldn't have been used anyway since there is no PTY), and extraneous log output causing issues.
[1]: https://paste.ubuntu.com/p/CpcKtmRDGm/
I patched the code to add "-n 0 --no-pager" and remove "sudo" when calling "systemctl status"[1].
Now I see the following defunct process:
maas 24458 0.0 0.0 0 0 ? Z 23:48 0:00 | \_ [systemctl] <defunct>
So I've ruled out `sudo`, the pager (which shouldn't have been used anyway since there is no PTY), and extraneous log output causing issues.
[1]: https:/ /paste. ubuntu. com/p/CpcKtmRDG m/