Skip to main content

How to manage rc scripts using chkconfig?

28.How to manage rc scripts using chkconfig?
Ans.
To configure any software package to work at boot time use this command with following options:
1. To check all packages working at which run levels:
#chkconfig –list

2. To check whether package is working at boot time:
#chkconfig –list packagename

3. To reset run levels for any package:
#chkconfig –levels 0123456 packagename OFF

4. To set run levels for any package:
#chkconfig –levels 23456 packagename ON

Comments

Popular posts from this blog

Java,ES,QT practical files

All practical files: Click below to start download Uploaded on special request||||

Java Program solutions

Temporarily Available: Click below to download...

Explain how to configure DHCP client?

50.Explain how to configure DHCP client? Ans. 1. Before configuring DHCP, NIC should be configured properly and recognized by the system. 2. After that it’s easy to command system to use DHCP to obtain its IP information. 3. Configuring DHCP client involves following steps : a. Open the /etc/sysconfig/networkscripts/ifcfg-eth0 file. b. Find the line bootproto=static c. Change the static to dhcp. d. Save changes. e. Restart the network by issuing command ‘service network restart’, after that system will receive its IP information from the DHCP server.