[CentOS] how to add service at boot up

Tue Mar 24 07:40:08 UTC 2015
Earl A Ramirez <earlaramirez at gmail.com>

On Tue, 2015-03-24 at 08:36 +0100, robert wrote:
> Hi there,
> I am used to traditional update-rc.d et all.
> 
> Now I wonder how to add a a script that used to called by init.d (wit 
> start/sop ..) to the new "service start xx" regime.
> 
> All the tutorials I found talk about how to use update-rc.d..
> 
> thanks
> robert
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

For CentOS 6
chkconfig <service_name> on

For CentOS 7
systemctl enable <service_name>