Services autostart on Amazon EC2
Original tutorial was for Centos, but it works perfectly with Amazon EC2 Linux Instance.
Starting services on boot in a Centos VPS is accomplished via the chkconfig command:
To make the httpd start on boot in runlevel 3, the default runlevel for Centos.
sudo chkconfig --levels 3 httpd on
To disable any service you do not want to start on boot:
sudo chkconfig --levels 3 httpd off
These commands add or remove symlinks from the /etc/rc.d/rc3.d directory to the script in /etc/init.d for that service.
update-rc.d -f apache2 remove