From 198fa7d4fe50b050d72cd406f4265b5fc138c9ca Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Fri, 16 Feb 2018 14:34:35 +0100 Subject: storyboard: re-added client applications logging --- rumba/storyboard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rumba/storyboard.py b/rumba/storyboard.py index bbb1946..26e91fd 100644 --- a/rumba/storyboard.py +++ b/rumba/storyboard.py @@ -412,9 +412,10 @@ class StoryBoard: for (x, t) in self.commands_list.items()}) self.start_time = time.time() - script = r'nohup "$@" > /dev/null & echo "$!"' + script = r'logname="$1"; shift; nohup "${@}" ' \ + r'> /tmp/${logname}.rumba.log 2>&1 & echo "$!"' + logger.debug("Writing utility startup script on client nodes.") for node in self.client_nodes: - logger.debug("Writing utility startup script on client nodes.") node.execute_command( "echo '%s' > startup.sh && chmod a+x startup.sh" % (script,) ) -- cgit v1.2.3