summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--upstart/cloud-init-nonet.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/upstart/cloud-init-nonet.conf b/upstart/cloud-init-nonet.conf
index bdeb5a2e..36b99fb5 100644
--- a/upstart/cloud-init-nonet.conf
+++ b/upstart/cloud-init-nonet.conf
@@ -21,7 +21,11 @@ script
[ -e "$emitted" -o -e "/var/$emitted" ]
}
msg() {
- echo "$UPSTART_JOB:" "$1"
+ local uptime="" idle=""
+ if [ -r /proc/uptime ]; then
+ read uptime idle < /proc/uptime
+ fi
+ echo "$UPSTART_JOB${uptime:+[${uptime}]}:" "$1"
}
handle_sigterm() {
@@ -32,6 +36,7 @@ script
msg "static networking is now up"
exit 0
fi
+ msg "recieved SIGTERM, networking not up"
exit 2
}