Thursday 9 June 2011

Configure network services to start automatically at boot

This a another fairly simple objective, which is related to this objective.
The command needed to set network services to start automatically at boot is chkconfig.
If you run this command you will get a list of all network services and whether they are set to run for a particular runlevel:
abrtd           0:off   1:off   2:off   3:on    4:off   5:on    6:off
acpid           0:off   1:off   2:on    3:on    4:on    5:on    6:off
atd             0:off   1:off   2:off   3:on    4:on    5:on    6:off

.                       
.                        
.                        
xinetd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
ypbind          0:off   1:off   2:off   3:off   4:off   5:off   6:off
You can also check a particular service with:
chkconfig --list servicename
 In order to set a service to start at boot for runlevels 3 & 5 you would use this:
chkconfig --level 35 servicename on
If you want to set the service to run on all runlevels, just issue this command:
chkconfig  servicename on
Note that this will not set the service to run for runlevels 0,1 and 6.

If you don't like chkconfig, there is an alternative command and with a terminal user interface as well :)
ntsyv

No comments:

Post a Comment