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
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