Académique Documents
Professionnel Documents
Culture Documents
1 of 2
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterpri...
Each line consists of the name of the service followed by its status (on or off) for each of the seven
numbered runlevels. For example, in the listing above, NetworkManager is enabled in runlevel 2,
3, 4, and 5, while abrtd runs in runlevel 3 and 5. The xinetd based services are listed at the end,
being either on, or off.
To display the current settings for a selected service only, use chkconfig --list followed by
the name of the service:
For example, to display the current settings for the sshd service, type:
You can also use this command to display the status of a service that is managed by xinetd. In that
case, the output will only contain the information whether the service is enabled or disabled:
For example, to enable the httpd service in these four runlevels, type:
2/23/2014 11:48 AM
2 of 2
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterpri...
To enable a service in certain runlevels only, add the --level option followed by numbers from 0
to 6 representing each runlevel in which you want the service to run:
The service will be started the next time you enter one of these runlevels. If you need to start the
service immediately, use the service command as described in Section 11.3.2, Starting a
Service (s3-services-running-running.html) .
Do not use the --level option when working with a service that is managed by xinetd, as it is
not supported. For example, to enable the rsync service, type:
If the xinetd daemon is running, the service is immediately enabled without having to manually
restart the daemon.
For instance, to disable the httpd service in these four runlevels, type:
To disable a service in certain runlevels only, add the --level option followed by numbers from 0
to 6 representing each runlevel in which you do not want the service to run:
The service will be stopped the next time you enter one of these runlevels. If you need to stop the
service immediately, use the service command as described in Section 11.3.3, Stopping a
Service (s3-services-running-stopping.html) .
Do not use the --level option when working with a service that is managed by xinetd, as it is
not supported. For example, to disable the rsync service, type:
If the xinetd daemon is running, the service is immediately disabled without having to manually
restart the daemon.
2/23/2014 11:48 AM