summaryrefslogtreecommitdiff
path: root/upstart
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-08-03 14:48:57 -0400
committerScott Moser <smoser@ubuntu.com>2012-08-03 14:48:57 -0400
commitdd6b8d380c195656e856ea907d956f7963d4543e (patch)
tree19fd0fb95ead96aedc115653e9fcc15bd3f76c8b /upstart
parent903b0867c43819dfa04f33db3b3ecb68e906e594 (diff)
downloadvyos-cloud-init-dd6b8d380c195656e856ea907d956f7963d4543e.tar.gz
vyos-cloud-init-dd6b8d380c195656e856ea907d956f7963d4543e.zip
add uptime to the output of cloud-log-shutdown
Diffstat (limited to 'upstart')
-rw-r--r--upstart/cloud-log-shutdown.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/upstart/cloud-log-shutdown.conf b/upstart/cloud-log-shutdown.conf
index 2985d349..278b9c06 100644
--- a/upstart/cloud-log-shutdown.conf
+++ b/upstart/cloud-log-shutdown.conf
@@ -14,5 +14,6 @@ script
0:POWEROFF) mode="poweroff";;
0:*) mode="shutdown-unknown";;
esac
- echo "$date: shutting down for $mode"
+ { read seconds idle < /proc/uptime; } 2>/dev/null || :
+ echo "$date: shutting down for $mode${seconds:+ [up ${seconds%.*}s]}."
end script