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
.
.
You can also check a particular service with:.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
chkconfig --list servicenameIn order to set a service to start at boot for runlevels 3 & 5 you would use this:
chkconfig --level 35 servicename onIf you want to set the service to run on all runlevels, just issue this command:
chkconfig servicename onNote 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