Age | Commit message (Collapse) | Author |
|
|
|
This commit merges
lp:~soren/ec2-init/0.5 at rev 67
and lp:ubuntu/lucid at 0.4.999-0ubuntu8
|
|
This is a speed improvement as previous would make a fork/subshell for
each pipe. This will only make a single fork. I've also verified that
each line in logger output will still get the 'ec2' prefix
$ printf "%s\n%s\n" "hi world" "by world" | logger -s -t ec2 2>/dev/null
$ tail -n 2 /var/log/messages
Sep 24 19:06:10 ip-10-242-225-190 ec2: hi world
Sep 24 19:06:10 ip-10-242-225-190 ec2: by world
The other thing to note is that I redirected stderr of the
regenerate_ssh_host_keys call to logger, so it will go to the logs also.
|
|
|
|
actually offer.
|
|
|
|
is possibly not even needed there)
Fix a bit of fallout due to code shuffling between EC2Init, ec2-set-apt-sources, and ec2-set-defaults.
|
|
|
|
run_once_per_instance().
There are three cases:
You want to run the script every time. In that case, simply do not wrap it.
You want to rerun the script every time the AMI has been rebundled. Wrap it in run_once_per_ami.
You want to run the script only once, ever. Wrap it in run_once_ever.
If I'm missing a case, please tell me.
|
|
Install init-script using distutils.
Add -o to dh_installinit call to let it find the init script.
|