Serviceconf

Serviceconf is a graphical application developed by Red Hat to configure which SysV services in /etc/rc.d/init.d are started at boot time (for runlevels 3, 4, and 5) and which xinetd services are enabled. It also allows you to start, stop, and restart SysV services as well as restart xinetd.

To start Serviceconf, use one of the following commands:

Figure 8-1. Serviceconf

Serviceconf displays the current runlevel as well as which runlevel you are currently editing. To edit a different runlevel, select Edit Runlevel from the pulldown menu and select runlevel 3, 4, or 5. Refer to the section called Runlevels for a description of runlevels.

Serviceconf lists the services from /etc/rc.d/init.d as well as the services controlled by xinetd. Click on a service to display a brief description of that service at the bottom of the window.

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.

WarningWarning
 

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.