Skip to main content

How to manage rc script using chkconfig?

39.How to manage rc script using chkconfig?
Ans.
1. Fedora core and Red hat enterprise Linux come with a useful tool called ‘chkconfig’.

2. It helps the system administrator to manage rc script and xinetd configuration files without having to manipulate them directly.

3. Type ‘chkconfig –list’ to see all the services chkconfig knows about, and whether they are started or stopped on each runlevel.

4. Example:
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
The first column is a name of the installed service, the next 7 columns represents a runlevel and tell us whether that service is turned on or off in that runlevel.

5. To turn a service on or off using chkconfig, we use following syntax:
Chkconfig –level[0-6] (you must choose a runlevel) servicename off|on|reset

6. To turn off the gpm daemon turned on previously, type:
chkconfig –level 2 gpm off

7. To turn on xinetd type:
chkconfig xined on

8. Run chkconfig –list again to check the changed services are set to the state we desire.

Comments

Popular posts from this blog

Java,ES,QT practical files

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

Vidyalankar Question paper solutions

Download from their website: http://www.vidyalankar.org/index.aspx or just click here to download

Explain network classes.

43.Explain network classes. Ans. 1. TCP/IP network are 4 bytes long, called IP addresses and written in dotted-decimal notation. (ex. 192.168.166.5) 2. The decimal numbers must be within the numeric range of 0-255, each IPv4 addresses consist of 4 parts. 3. Each part should conform to the 1-byte requirement. 4. Depending on the value of the first byte of the address, IP addresses can be divided into classes. 5. Network classes are of 3 type and have some specific range • Class A 0-127 • Class B 128-191 • Class C 192-233 6. Class division enables us efficient use of the address numbers. 7. Assigned network numbers are maintained in a database managed by InterNIC to insure that each assignment is unique. 8. After obtaining a network number, the host numbers may be assigned as required, for data transfer ARP maps the IP address to the MAC address of the device. 9. Routers are used for transferring data between 2 devices, routers are default gateway ...