From 56ace2640b9b340f9efcfc1828141340e8311d8e Mon Sep 17 00:00:00 2001 From: Alexander Tiderko Date: Fri, 1 Dec 2023 14:28:27 +0100 Subject: [PATCH] extended process detection --- fkie_node_manager_daemon/scripts/remote_node.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fkie_node_manager_daemon/scripts/remote_node.py b/fkie_node_manager_daemon/scripts/remote_node.py index cd72ce24..df29f477 100755 --- a/fkie_node_manager_daemon/scripts/remote_node.py +++ b/fkie_node_manager_daemon/scripts/remote_node.py @@ -305,8 +305,10 @@ def main(argv=sys.argv) -> int: command = args.node_type if args.node_type is None: command = args.command - running_processes = find_process_by_name( - command, args.package, additional_args) + running_processes = find_process_by_name(command, args.package, additional_args) + if not running_processes: + # try without package name + running_processes = find_process_by_name(command, None, additional_args) if len(running_processes) > 0: if args.name: Log.warn(