summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@nelson>2010-01-06 15:44:05 -0500
committerScott Moser <smoser@nelson>2010-01-06 15:44:05 -0500
commitbaf494858f0a9e8514d66cf3371dc6135b411c26 (patch)
tree8741f66e05ae863e718851879ad803325943562f
parent6f58655f2893a2a8e2edc85130d98294d5cf4ad1 (diff)
downloadvyos-cloud-init-baf494858f0a9e8514d66cf3371dc6135b411c26.tar.gz
vyos-cloud-init-baf494858f0a9e8514d66cf3371dc6135b411c26.zip
add cloud-run-user-script upstart job to run rc.local style scripts
-rw-r--r--upstart/cloud-run-user-script.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/upstart/cloud-run-user-script.conf b/upstart/cloud-run-user-script.conf
new file mode 100644
index 00000000..5e0e3c25
--- /dev/null
+++ b/upstart/cloud-run-user-script.conf
@@ -0,0 +1,11 @@
+# this runs user scripts found in user-data, that are
+# stored in /var/lib/cloud/scripts by the initial ec2init upstart job
+
+description "execute cloud user scripts"
+
+start on stopped rc RUNLEVEL=[2345]
+console output
+task
+
+exec cloud-init-run-module once_per_ami execute \
+ run-parts "/var/lib/cloud/scripts"