[Bug 1018554] Re: write timestamp to console on halt/reboot/shutdown
James Hunt
1018554 at bugs.launchpad.net
Thu Jun 28 10:02:32 UTC 2012
Hi Scott,
This doesn't require a change to Upstart - just create a job called
"log-reboot" or similar containing something like this:
-------------------------------------
start on runlevel PREVLEVEL=2
task
exec echo "rebooting `date`" > /dev/console
-------------------------------------
--
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 “upstart” 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/upstart/+bug/1018554/+subscriptions
More information about the foundations-bugs
mailing list