blob: cf76fe3214719b20a3321b757446d2a7326a7da4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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] and cloud-config)
console output
task
script
sdir=/var/lib/cloud/data/scripts
[ -d "$sdir" ] || exit 0
exec cloud-init-run-module once-per-instance user-scripts execute \
run-parts --regex '.*' "$sdir"
end script
|