xinetd is also configured to remember the setting. You can enable/disable multiple xinetd services
at a time and save the changes when you are finished.
For example, assume you check rsync to enable it in runlevel 3 and then save the changes. The
rsync service is immediately enabled. The next time xinetd is started, rsync is still enabled.
Note
When you save changes to xinetd services, xinetd is reloaded, and the changes take
place immediately. When you save changes to other services, the runlevel is reconfigured,
but the changes do not take effect immediately.
To enable a non-xinetd service to start at boot time for the currently selected runlevel, check the box
beside the name of the service in the list. After configuring the runlevel, apply the changes by selecting
File > Save Changes from the pulldown menu. The runlevel configuration is changed, but the runlevel
is not restarted; thus, the changes do not take place immediately.
For example, assume you are configuring runlevel 3. If you change the value for the httpd service
from checked to unchecked and then select Save Changes, the runlevel 3 configuration changes so
that httpd is not started at boot time. However, runlevel 3 is not reinitialized, so httpd is still running.
Select one of following options at this point:
1. Stop the httpd service — Stop the service by selecting it from the list and clicking the Stop
button. A message appears stating that the service was stopped successfully.
2. Reinitialize the runlevel — Reinitialize the runlevel by going to a shell prompt and typing the
command telinit x (where x is the runlevel number; in this example, 3.). This option is
recommended if you change the Start at Boot value of multiple services and want to activate the
changes immediately.
3. Do nothing else — You do not have to stop the httpd service. You can wait until the system
is rebooted for the service to stop. The next time the system is booted, the runlevel is initialized
without the httpd service running.
To add a service to a runlevel, select the runlevel from the Edit Runlevel pulldown menu, and then
select Actions > Add Service. To delete a service from a runlevel, select the runlevel from the Edit
Runlevel pulldown menu, select the service to be deleted from the list on the left, and select Actions
> Delete Service.
16.4. ntsysv
The ntsysv utility provides a simple interface for activating or deactivating services. You can use
ntsysv to turn an xinetd-managed service on or off. You can also use ntsysv to configure runlevels.
By default, only the current runlevel is configured. To configure a different runlevel, specify one
or more runlevels with the --level option. For example, the command ntsysv --level 345
configures runlevels 3, 4, and 5.
The ntsysv interface works like the text mode installation program. Use the up and down arrows to
navigate up and down the list. The space bar selects/unselects services and is also used to "press"
the Ok and Cancel buttons. To move between the list of services and the Ok and Cancel buttons, use
the Tab key. An asterisk (*) signifies that a service is set to on. Pressing the F1 key displays a short
description of the selected service.
ntsysv
199
Need help?
Do you have a question about the ENTERPRISE LINUX 5 - DEPLOYMENT and is the answer not in the manual?
Questions and answers