From cc01225957ef50fd9858424122e50938100bc23b Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 11 Jan 2010 12:54:15 -0500 Subject: 2 changes to cloud-run-user-script 1. arguments to run-parts came before run-parts 2. explicitly state that we dont want this script to run until cloud-config is done --- upstart/cloud-run-user-script.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upstart/cloud-run-user-script.conf b/upstart/cloud-run-user-script.conf index e4a60bcb..cf76fe32 100644 --- a/upstart/cloud-run-user-script.conf +++ b/upstart/cloud-run-user-script.conf @@ -3,7 +3,7 @@ description "execute cloud user scripts" -start on stopped rc RUNLEVEL=[2345] +start on (stopped rc RUNLEVEL=[2345] and cloud-config) console output task @@ -11,5 +11,5 @@ script sdir=/var/lib/cloud/data/scripts [ -d "$sdir" ] || exit 0 exec cloud-init-run-module once-per-instance user-scripts execute \ - --regex '.*' run-parts "$sdir" + run-parts --regex '.*' "$sdir" end script -- cgit v1.2.3