
start
and
stop
. The scripts also understand the
restart
,
reload
,
force-reload
, and
status
options. These different options are explained in
Ta-
ble 19.2, “Possible init Script Options”
(page 379). Scripts that are run directly by init
do not have these links. They are run independently from the runlevel when needed.
Table 19.2
Possible init Script Options
Description
Option
Start service.
start
Stop service.
stop
If the service is running, stop it then restart it. If it is not
running, start it.
restart
Reload the configuration without stopping and restarting
the service.
reload
Reload the configuration if the service supports this.
Otherwise, do the same as if
restart
had been given.
force-reload
Show the current status of service.
status
Links in each runlevel-specific subdirectory make it possible to associate scripts with
different runlevels. When installing or uninstalling packages, these links are added and
removed with the help of the program insserv (or using
/usr/lib/lsb/install
_initd
, which is a script calling this program). See the insserv(8) man page for details.
All of these settings may also be changed with the help of the YaST module. If you
need to check the status on the command line, use the tool chkconfig, described in the
chkconfig(8) man page.
A short introduction to the boot and stop scripts launched first or last, respectively,
follows as well as an explanation of the maintaining script.
boot
Executed while starting the system directly using init. It is independent of the
chosen runlevel and is only executed once. Here, the
proc
and
pts
file systems
are mounted and blogd (boot logging daemon) is activated. If the system is booted
Booting and Configuring a Linux System
379
Содержание LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Страница 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Страница 14: ......
Страница 19: ...Part I Deployment...
Страница 20: ......
Страница 60: ......
Страница 128: ......
Страница 243: ...Part II Administration...
Страница 244: ......
Страница 274: ......
Страница 312: ......
Страница 348: ......
Страница 380: ......
Страница 381: ...Part III System...
Страница 382: ......
Страница 438: ......
Страница 452: ......
Страница 478: ......
Страница 486: ......
Страница 498: ......
Страница 512: ......
Страница 558: ......
Страница 559: ...Part IV Services...
Страница 560: ......
Страница 652: ......
Страница 670: ......
Страница 742: ......
Страница 754: ......
Страница 796: ......
Страница 817: ...Part V Security...
Страница 818: ......
Страница 858: ......
Страница 886: ......
Страница 910: ......
Страница 911: ...Part VI Troubleshooting...
Страница 912: ......
Страница 924: ......