Konrad Podgórski - Web Developer

Personal blog about developing web applications with PHP

Services autostart on Amazon EC2

Please keep in mind that this post was written more than 2 years ago and might be outdated.

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.

source:

http://www.linuxserver.org/linux/centos/how-to-start-services-on-centos-boot/

Ubuntu:

http://www.debuntu.org/how-to-managing-services-with-update-rc-d/

update-rc.d -f apache2 remove

on

Find this post helpful? Spread the word, thanks.

Comments