From 19023c5df38964a53b63f77943e3ac1d02d95d6c Mon Sep 17 00:00:00 2001 From: Soren Hansen Date: Mon, 10 Aug 2009 14:00:22 +0200 Subject: Add new script: ec2-wait-for-meta-data-service.py It will wait for around half an hour for the ec2 meta data service to turn up and eventually execute the configured bailout command (if any) if it never shows up. Call this as the first thing in the init script. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index a957f8ae..9d9e5d50 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,8 @@ setup(name='EC2-init', 'ec2-run-user-data.py', 'ec2-set-apt-sources.py', 'ec2-set-defaults.py', - 'ec2-set-hostname.py'], + 'ec2-set-hostname.py', + 'ec2-wait-for-meta-data-service.py'], data_files=[('/etc/ec2-init', ['debian/ec2-config.cfg']), ('/etc/ec2-init/templates', glob('templates/*'))], ) -- cgit v1.2.3