diff options
Diffstat (limited to 'debian/init')
-rw-r--r-- | debian/init | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/init b/debian/init index 2fc4b822..608db7a2 100644 --- a/debian/init +++ b/debian/init @@ -70,10 +70,20 @@ regenerate_ssh_host_keys() { case "$1" in start) + log_daemon_msg "Waiting for EC2 meta-data service" + if ec2-wait-for-meta-data-service + then + log_end_msg 0 + else + log_end_msg 1 + exit 1 + fi + if run_once_per_ami ssh_host_key_regeneration then regenerate_ssh_host_keys fi + update-motd if run_once_ever ec2-defaults |