summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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