diff options
Diffstat (limited to 'scripts/runqemu')
| -rwxr-xr-x | scripts/runqemu | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 24c4a40b50..1525081ad5 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -1500,6 +1500,9 @@ class BaseConfig(object): | |||
| 1500 | cmd = "%s %s" % (self.qemu_opt, kernel_opts) | 1500 | cmd = "%s %s" % (self.qemu_opt, kernel_opts) |
| 1501 | cmds = shlex.split(cmd) | 1501 | cmds = shlex.split(cmd) |
| 1502 | logger.info('Running %s\n' % cmd) | 1502 | logger.info('Running %s\n' % cmd) |
| 1503 | with open('/proc/uptime', 'r') as f: | ||
| 1504 | uptime_seconds = f.readline().split()[0] | ||
| 1505 | logger.info('Host uptime: %s\n' % uptime_seconds) | ||
| 1503 | pass_fds = [] | 1506 | pass_fds = [] |
| 1504 | if self.taplock_descriptor: | 1507 | if self.taplock_descriptor: |
| 1505 | pass_fds = [self.taplock_descriptor.fileno()] | 1508 | pass_fds = [self.taplock_descriptor.fileno()] |
| @@ -1523,6 +1526,9 @@ class BaseConfig(object): | |||
| 1523 | signal.signal(signal.SIGTERM, signal.SIG_IGN) | 1526 | signal.signal(signal.SIGTERM, signal.SIG_IGN) |
| 1524 | 1527 | ||
| 1525 | logger.info("Cleaning up") | 1528 | logger.info("Cleaning up") |
| 1529 | with open('/proc/uptime', 'r') as f: | ||
| 1530 | uptime_seconds = f.readline().split()[0] | ||
| 1531 | logger.info('Host uptime: %s\n' % uptime_seconds) | ||
| 1526 | if self.cleantap: | 1532 | if self.cleantap: |
| 1527 | cmd = ('sudo', self.qemuifdown, self.tap, self.bindir_native) | 1533 | cmd = ('sudo', self.qemuifdown, self.tap, self.bindir_native) |
| 1528 | logger.debug('Running %s' % str(cmd)) | 1534 | logger.debug('Running %s' % str(cmd)) |
