The "ps au" output was truncating lines which could cause
processes to get missed in some cases, like where there
is a long --client-mountpoint argument.
Signed-off-by: John Spray <john.spray@redhat.com>
Return PID as an integer or None if not found
"""
ps_txt = self.controller.run(
- args=["ps", "ua", "-C", "ceph-fuse"],
+ args=["ps", "uaww", "-C", "ceph-fuse"],
check_status=False # ps returns err if nothing running so ignore
).stdout.getvalue().strip()
lines = ps_txt.split("\n")[1:]