Software >> OS >> Unix >> Linux >>  How to configure auto start for services

1. Use chkconfig utility to add start and stop scripts to /etc/rc.d for the desired run level. eg. To set smb to auto start when entering levels 3, 4, 5 and to auto stop when entering levels 0, 1, 2, 6 # chkconfig --level 345 smb on # chkconfig --level 0126 smb off # chkconfig --list smb