summaryrefslogtreecommitdiff
path: root/upstart/cloud-log-shutdown.conf
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-08-10 09:06:15 -0600
committerScott Moser <smoser@ubuntu.com>2016-08-10 09:06:15 -0600
commitc3c3dc693c14175e110b5fe125d4d5f98ace9700 (patch)
tree8858702c2c8a6ad4bf1bb861a4565e0a9c28e588 /upstart/cloud-log-shutdown.conf
parent5bd3493d732e5b1902872958e8681f17cbc81ce5 (diff)
downloadcloud-init-trunk.tar.gz
README: Mention move of revision control to git.HEADtrunk
cloud-init development has moved its revision control to git. It is available at https://code.launchpad.net/cloud-init Clone with git clone https://git.launchpad.net/cloud-init or git clone git+ssh://git.launchpad.net/cloud-init For more information see https://git.launchpad.net/cloud-init/tree/HACKING.rst
Diffstat (limited to 'upstart/cloud-log-shutdown.conf')
-rw-r--r--upstart/cloud-log-shutdown.conf19
1 files changed, 0 insertions, 19 deletions
diff --git a/upstart/cloud-log-shutdown.conf b/upstart/cloud-log-shutdown.conf
deleted file mode 100644
index 278b9c06..00000000
--- a/upstart/cloud-log-shutdown.conf
+++ /dev/null
@@ -1,19 +0,0 @@
-# log shutdowns and reboots to the console (/dev/console)
-# this is useful for correlating logs
-start on runlevel PREVLEVEL=2
-
-task
-console output
-
-script
- # runlevel(7) says INIT_HALT will be set to HALT or POWEROFF
- date=$(date --utc)
- case "$RUNLEVEL:$INIT_HALT" in
- 6:*) mode="reboot";;
- 0:HALT) mode="halt";;
- 0:POWEROFF) mode="poweroff";;
- 0:*) mode="shutdown-unknown";;
- esac
- { read seconds idle < /proc/uptime; } 2>/dev/null || :
- echo "$date: shutting down for $mode${seconds:+ [up ${seconds%.*}s]}."
-end script