Documente Academic
Documente Profesional
Documente Cultură
~]$ su -
Password:
To start the utility, type the following command:
~]# ntsysv
The utility displays the list of available services (i.e., the services from the /etc/rc.d/init.d/ directory)
along with their current status and a description obtainable by pressing F1. See Table 6.3, “Possible
Service States” for a list of used symbols and an explanation of their meaning.
Symb
Description
ol
The service is
[*]
enabled.
The service is
[]
disabled.
Please, keep in mind that ntsysv does not actually stop the service. If you need to stop the service
immediately, use the service command as described in Section 6.3.1.2, “Stopping the Service”.
~]$ su -
Password:
To display the current settings for selected service only, use chkconfig --list followed by the name of
the service:
You can also use chkconfig --list <service> to display the status of a service that is managed by
xinetd. In that case, the output will simply contain the information whether the service is enabled or
disabled:
To enable the service that is managed by xinetd, use chkconfig <service> on only, as the --level
option is not allowed:
To disable the service that is managed by xinetd, use chkconfig <service> off only, as the --level
option is not allowed:
~]$ su -
Password:
Tip
If you are running a graphical user interface, you can also use the Service Configuration utility. See
Section 6.2.1, “Using the Service Configuration Utility” for more information.
You can also display the status of all available services at once using the --status-all option: