aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-02-16 14:34:35 +0100
committerMarco Capitani <m.capitani@nextworks.it>2018-02-16 14:46:05 +0100
commit198fa7d4fe50b050d72cd406f4265b5fc138c9ca (patch)
treedbd914c7dc135ffadde778e3cfcd75b0f0881708
parent5c2160624972beba6a1d50438e0ef2b8d723a4d5 (diff)
downloadrumba-198fa7d4fe50b050d72cd406f4265b5fc138c9ca.tar.gz
rumba-198fa7d4fe50b050d72cd406f4265b5fc138c9ca.zip
storyboard: re-added client applications logging
-rw-r--r--rumba/storyboard.py5
1 files 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,)
)