Autostart/stop service on CentOs, Fedora and RedHat

For Debian based distros run the following command as root :

update-rc.d servicename defaults

For CentOS and RedHat run the following command as root :

chkconfig servicename on