Installation guide

94 Chapter 8. Controlling Access to Services
To start, stop, or restart a service immediately, select the service and choose the action from
the Actions pulldown menu. You can also select the service and click the start, stop, or restart
button on the toolbar.
If you select an xinetd service such as telnet, the Start, Stop, and Restart buttons will not be
active. If you change the Start at Boot value of an xinetd service, you must click the Save
Changes button to restart xinetd and disable/enable the xinetd services that you changed.
To enable a service at boot time for the currently selected runlevel, check the checkbox beside
the name of the service under the Start at Boot column. After configuring the runlevel, you
must apply the changes. Select File => Save Changes from the pulldown menu or click the
Save Changes button.
Warning
When you save changes to xinetd services, xinetd is restarted. When you save changes to other
services, the runlevel is reconfigured, but the changes do not take effect immediately.
If you check or uncheck the Start at Boot value for a service in /etc/rc.d/init.d, the Save
Changes button will become active. Click it to reconfigure the currently selected runlevel.
The changes do not affect the system immediately. For example, assume you are configuring
runlevel 3. If you change the Start at Boot value for the anacron service from checked to
unchecked and then click the Save Changes button, the runlevel 3 configuration changes so
that anacron is not started at boot time. However, runlevel 3 is not reinitialized, so anacron
is still running. Select one of following options at this point:
1. Stop the anacron service — Stop the service by selecting it from the list and clicking the
Stop the selected service button. A message will be displayed stating that the service
was stopped successfully.
2. Re-initialize the runlevel Reinitialize the runlevel by going to a shell prompt (such as
an XTerm or GNOME terminal) and typing the command telinit 3 (where 3 is the
runlevel number). This option is recommended if you change the Start at Boot value
of more than one service and want to activate the changes immediately.
3. Do nothing else You do not have to stop the anacron service. You can wait until
the system is rebooted for the service to stop. The next time the system is booted, the
runlevel will be initialized without the anacron service running.
8.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 start or
stop a service in the /etc/rc.d hierarchy; in that case, the ntsysv command (without op-
tions) is used to configure current runlevel. If you want to configure a different runlevel, use
something like ntsysv --levels 016. (In this example, you would be setting the services
for runlevels 0, 1 and 6.)
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 * signifies that a service is set to on. The [F1] key
will pop up a short description of each service.