For my own reference, here it is:
This procedure is different for Ubuntu vs. CentOS.
Ubuntu
- update-rc.d serviceNameIn/etc/init.d defaults
- Here is a great reference
- chkconfig serviceNameIn/etc/init.d on
- You may have to edit the init.d script by finding the line that reads:
- # chkconfig: - 64 36 ( for example ) and make sure the - is replaced by the runlevels you want it running in, i.e. 2345
- Here is a man page