aboutsummaryrefslogtreecommitdiff
path: root/rumba/prototypes/ouroboros.py
diff options
context:
space:
mode:
Diffstat (limited to 'rumba/prototypes/ouroboros.py')
-rw-r--r--rumba/prototypes/ouroboros.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py
index 1c24a0c..022c931 100644
--- a/rumba/prototypes/ouroboros.py
+++ b/rumba/prototypes/ouroboros.py
@@ -56,25 +56,25 @@ class OurServer(sb.Server):
server.difs
)
- def _make_run_cmd(self):
- o_cmd = super(OurServer, self)._make_run_cmd()
+ def _make_run_cmd(self, node):
+ o_cmd = super(OurServer, self)._make_run_cmd(node)
# Run and store PID
- n_cmd = 'pid=$(%s); ' % (o_cmd,)
+ n_cmd = 'pid=$(%s) && ' % (o_cmd,)
# Build register command
r_cmd = 'irm r n %s ' % (self.id,)
if len(self.difs) == 0:
- r_cmd += 'layer \'*\''
+ r_cmd += ' '.join('layer %s' % (layer.name,) for layer in node.difs)
else:
- r_cmd += ' '.join('layer %s' % (layer,) for layer in self.difs)
- r_cmd += ' > /dev/null 2>&1; '
+ r_cmd += ' '.join('layer %s' % (layer.name,) for layer in self.difs)
+ r_cmd += ' && '
# Add register command
n_cmd += r_cmd
# Add bind command
- n_cmd += 'irm b process $pid name %s > /dev/null 2>&1; ' % (self.id,)
+ n_cmd += 'irm b process $pid name %s && ' % (self.id,)
n_cmd += 'echo $pid' # We need to return the pid for the sb