Running Script on EC2 Boot

I want to mount my EBS volume and start up the Apache/MySQL servers on my EC2 machine, but I can't even get my script to run at startup.

I've tried putting it in:

/etc/init.d/

/etc/rc.d/rc5.d/

/etc/rc.local

None of them are working... Where should I put my script?


Make sure your script is runnable. (chmod +x)

But why would you use a script to mount it? You can add it to /etc/fstab.