Ubuntu under the Setup program starting from several methods 1,
This is also the most common kind of
Rcconf:
sudo apt-get install rcconf
Run under Root: rcconf
More full-featured: sysv-rc-conf
sudo apt-get install sysv-rc-conf
Run: sysv-rc-conf
This change is very simple, you can know by yourself.
2,
directly to the/ETC/RC0.D ~/etc/rc6.d and/ETC/RCS.D, the beginning of the start, the beginning of the expression K does not start,
For example: To turn off the VSFTPD boot automatically, just sudo mv/etc/rc2.d/s20vsftpd/etc/rc2.d/k20vsftpd on it.
The purpose of this command is to use the rename function of the MV.
3,chkconfig, this method is more commonly used in Redhat,debian, in Fedora and Ubuntu with Method 1 is relatively simple, but learning this method is also good.
But in Ubuntu, this command does not redhat easy to use, always wrong.
Forget it, or just take a look at the usage of redhat inside chkconfig.
1,chkconfig--level [0123456] [service name] [On|off]
Chkconfig--level dhcp3-server off----Set the DHCP Server service to shut Down Under level2,3.
2,chkconfig--list Viewing the service's auto-on status
3,chkconfig--add adds a service to Chkconfig to manage, but the service must be within/ETC/INIT.D.
Example
1,gedit/etc/init.d/test
Chkconfig:[runlevels] [start number] [stop number]
CHKCONFIG:23 80 70
Where start number represents s80test
Stop number stands for k70test
2,chkconfig--add Test
3,chkconfig--list Test
Test 0:off 1:off 2:on 3:on 4:off 5:off 6:off
Files under the 4,check/etc/rc.d/
Find/etc/rc.d-type L | grep ' Test ' |sort
/etc/rc.d/rc0.d/k70test
/etc/rc.d/rc1.d/k70test
/etc/rc.d/rc2.d/s80test
/etc/rc.d/re3.d/s80test
/etc/rc.d/rc4.d/k70test
/etc/rc.d/rc5.d/k70test
/etc/rc.d/rc6.d/k70test
/etc/rc.d/rc7.d/k70test
-type L stands for "Connection file"
4,chkconfig--del Delete a service for chkconfig management
5, showing the current run Level 2 as the starting service
Chkconfig--list | grep ' 3:on '
Several ways to set up the program starting from Ubuntu