if not self.options.probe:
self.reboot(box)
else:
+ command=['ssh',self.root(box),'uptime']
+ uptime=self.backquote(command).strip()
+
command=['ssh',self.root(box),'pgrep','build']
if self.options.dry_run:
self.run(command,None)
else:
pids=self.backquote(command)
if not pids:
- self.header ('No build process on %s'%box)
+ self.header ('No build process on %s (%s)'%(box,uptime))
else:
command=['ssh',self.root(box),'ps','-o','pid,command'] + [ pid for pid in pids.split("\n") if pid]
- self.run(command,"Active build processes on %s"%box)
+ self.run(command,"Active build processes on %s (%s)"%(box,uptime))
vplc_matcher = re.compile(".*(vplc[0-9]+$)")
def vplcname (self, vservername):