Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 272 #298
i
i
i
i
i
i
i
i
and Required-Stop: lines, specify all services that need to be started
or stopped, respectively, before the service itself is started or stopped.
This information is used later to generate the numbering of script names,
as found in the runlevel directories. Under Default-Start: and
Default-Stop:, specify the runlevels in which the service should auto-
matically be started or stopped. Finally, under Description:, provide a
short description of the service in question.
To create the links from /etc/init.d/ to the corresponding runlevel
directories (/etc/init.d/rc?.d/), enter the command insserv
<new-script-name>. The insserv program evaluates the INIT INFO
header to create the necessary links for start and stop scripts in the runlevel
directories (/etc/init.d/rc?.d/). The program also takes care of the
correct start and stop order for each runlevel by including the necessary
numbers in the names of these links. If you prefer a graphical tool to create
such links, use the runlevel editor provided by YaST, as described in Sec-
tion 11.5.
If a script already present in /etc/init.d/ should be integrated into the
existing runlevel scheme, create the links in the runlevel directories right
away with insserv or by enabling the corresponding service in the runlevel
editor of YaST. Your changes are applied during the next reboot — the new
service will be started automatically.
11.5 The YaST Runlevel Editor
After starting this YaST module, it displays an overview listing all the
available services and the current status of each service whether they are
enabled. Decide whether to use the module in ‘Simple Mode’ or in ‘Expert
Mode’. The default ‘Simple Mode’ should be sufficient for most purposes.
The left column shows the name of the service, the center column indicates
its current status, and the right column gives a short description. For the
selected service, a more detailed description is provided in the lower part
of the window. To enable a service, select it in the table then select ‘Enable’.
The same steps apply to disable a service.
For detailed control over the runlevels in which a service is started or
stopped or to change the default runlevel, first select ‘Expert Mode’. In
this mode, the dialog displays the current default runlevel or “initdefault”
(the runlevel into which the system boots by default) at the top. Normally,
the default runlevel of a SUSE LINUX system is runlevel 5 (full multiuser
mode with network and X). A suitable alternative might be runlevel 3 (full
multiuser mode with network).
272 11.5. The YaST Runlevel Editor