diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-08-03 14:48:57 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-08-03 14:48:57 -0400 |
commit | dd6b8d380c195656e856ea907d956f7963d4543e (patch) | |
tree | 19fd0fb95ead96aedc115653e9fcc15bd3f76c8b /upstart | |
parent | 903b0867c43819dfa04f33db3b3ecb68e906e594 (diff) | |
download | vyos-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.conf | 3 |
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 |