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
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1018554

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

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to