[Bug 1018554] Re: write timestamp to console on halt/reboot/shutdown

Scott Moser smoser at ubuntu.com
Thu Jun 28 19:58:02 UTC 2012


I chatted a bit with james, and he also said:
<smoser> woudl it be possible to have a single job that fired on halt, poweroff, reboot?
<jodh> that job will fire on halt/poweroff/reboot already.
<jodh> console output prolly makes more sense, yeah, so just drop the redirection.
<smoser> so if it runs on halt/poweroff/reboot, is there a way that i can determine which?
<jodh> yes - the RUNLEVEL variable in that job will be set to 0, 1, or 6. See "man 7 runlevel" for details
<jodh> bear in mind that the job needs to be quick as if things take too long on shutdown, they get killed of course.

So, i suggest we just add this to cloud-init ubuntu packaging.

** Package changed: upstart (Ubuntu) => cloud-init (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1018554

Title:
  write timestamp to console on halt/reboot/shutdown

Status in “cloud-init” package in Ubuntu:
  Confirmed

Bug description:
  In EC2 and other cloud platforms, the console data is programmatically
  available.

  Our tests in EC2 collect this console output on shutdown / reboot
  /terminate.  The data is very useful.

  in cloud-init i've added timestamps to output so that information is available in the console log.
  One thing missing (which cloud-init has no hooks for) is 'shutdown' or 'reboot'.

  I'd like for upstart to write a message to /dev/console saying:
   rebooting Wed, 27 Jun 2012 15:52:45 -0400

  or something like that.
  I'd be happy if the 'nih_info' messages in util/reboot.c
  had at timestamp on them, and got written to /dev/console by default (they do not seem to).

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: upstart 1.5-0ubuntu7
  ProcVersionSignature: User Name 3.5.0-2.2-generic 3.5.0-rc4
  Uname: Linux 3.5.0-2-generic x86_64
  ApportVersion: 2.2.5-0ubuntu1
  Architecture: amd64
  Date: Wed Jun 27 19:45:52 2012
  ProcEnviron:
   TERM=screen
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: upstart
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1018554/+subscriptions




More information about the foundations-bugs mailing list