[ec2-beta] Starting a script after attaching an EBS volume?

Thomas Butter thomas at butter.eu
Fri Mar 6 15:08:15 GMT 2009


Hi Michael,

you could write a script similar to this that waits until the volume  
is attached:

         mount /dev/sdf /mnt/ebs
         while [ $? -ne 0 ]
         do
           sleep 5;
           mount /dev/sdf /mnt/ebs
         done

Regards,

Thomas

On 06.03.2009, at 16:01, uona at sineta.de wrote:

> Hello,
>
> is it possible to trigger an event (e.g. starting a script) after
> attaching an EBS volume to my ubuntu instance?
>
>
> Thanks and Kind Regards
> Michael
>
> -- 
> Ec2-beta mailing list
> Ec2-beta at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ec2-beta
>





More information about the Ec2-beta mailing list