2004-11-03 13:51:07 +00:00
|
|
|
.\" Written by Oron Peled <oron@actcom.co.il>.
|
|
|
|
.\" May be distributed subject to the GPL.
|
|
|
|
.\"
|
|
|
|
.\" I tried to be as much generic in the description as possible:
|
|
|
|
.\" - General boot sequence is applicable to almost any
|
|
|
|
.\" OS/Machine (DOS/PC, Linux/PC, Solaris/SPARC, CMS/S390)
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
.\" - kernel and init(8) is applicable to almost any UNIX/Linux
|
|
|
|
.\" - boot scripts are applicable to SYSV-R4 based UNIX/Linux
|
2004-11-03 15:32:55 +00:00
|
|
|
.\"
|
2005-03-31 14:12:28 +00:00
|
|
|
.\" Modified 2004-11-03 patch from Martin Schulze <joey@infodrom.org>
|
2004-11-03 15:32:55 +00:00
|
|
|
.\"
|
2010-09-19 17:53:40 +00:00
|
|
|
.TH BOOT 7 2010-09-19 "Linux" "Linux Programmer's Manual"
|
2007-08-10 07:22:13 +00:00
|
|
|
.SH NAME
|
2007-12-25 22:02:19 +00:00
|
|
|
boot-scripts \- General description of boot sequence
|
2007-08-10 07:22:13 +00:00
|
|
|
.SH DESCRIPTION
|
2007-04-12 22:42:49 +00:00
|
|
|
.LP
|
2004-11-03 13:51:07 +00:00
|
|
|
The boot sequence varies in details among systems
|
|
|
|
but can be roughly divided to the following steps:
|
2012-09-24 08:05:20 +00:00
|
|
|
(i) hardware boot, (ii) operating system (OS) loader,
|
2004-11-03 13:51:07 +00:00
|
|
|
(iii) kernel startup, (iv) init and inittab,
|
|
|
|
(v) boot scripts.
|
|
|
|
We will describe each of these in more detail below.
|
2007-12-25 22:02:19 +00:00
|
|
|
.SS "Hardware-boot"
|
|
|
|
After power-on or hard reset, control is given
|
2008-03-19 11:52:55 +00:00
|
|
|
to a program stored on read-only memory (normally
|
2007-04-12 22:42:49 +00:00
|
|
|
PROM).
|
|
|
|
In PC we usually call this program the \fBBIOS\fR.
|
2004-11-03 13:51:07 +00:00
|
|
|
|
2007-12-25 22:02:19 +00:00
|
|
|
This program normally makes a basic self-test of the
|
accept.2, access.2, acct.2, clock_nanosleep.2, mbind.2, mincore.2, remap_file_pages.2, sched_setscheduler.2, set_mempolicy.2, splice.2, stat.2, syslog.2, timer_create.2, timerfd_create.2, truncate.2, fenv.3, ferror.3, fflush.3, fgetwc.3, fgetws.3, flockfile.3, fputwc.3, fputws.3, fread.3, getopt.3, gets.3, getwchar.3, glob.3, iconv.3, longjmp.3, pow.3, printf.3, puts.3, putwchar.3, regex.3, rpc.3, scanf.3, setjmp.3, termios.3, unlocked_stdio.3, wcswidth.3, hd.4, rtc.4, st.4, core.5, dir_colors.5, elf.5, proc.5, arp.7, ascii.7, boot.7, bootparam.7, charsets.7, futex.7, ip.7, iso_8859-11.7, man-pages.7, man.7, mdoc.samples.7, path_resolution.7, pipe.7, posixoptions.7, unicode.7, unix.7, uri.7, utf-8.7, ld.so.8: s/non-/non/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 17:20:12 +00:00
|
|
|
machine and accesses nonvolatile memory to read
|
2007-04-12 22:42:49 +00:00
|
|
|
further parameters.
|
|
|
|
This memory in the PC is
|
2007-12-25 22:02:19 +00:00
|
|
|
battery-backed CMOS memory, so most people
|
2004-11-03 13:51:07 +00:00
|
|
|
refer to it as the \fBCMOS\fR, although outside
|
|
|
|
of the PC world, it is usually called \fBnvram\fR
|
accept.2, access.2, acct.2, clock_nanosleep.2, mbind.2, mincore.2, remap_file_pages.2, sched_setscheduler.2, set_mempolicy.2, splice.2, stat.2, syslog.2, timer_create.2, timerfd_create.2, truncate.2, fenv.3, ferror.3, fflush.3, fgetwc.3, fgetws.3, flockfile.3, fputwc.3, fputws.3, fread.3, getopt.3, gets.3, getwchar.3, glob.3, iconv.3, longjmp.3, pow.3, printf.3, puts.3, putwchar.3, regex.3, rpc.3, scanf.3, setjmp.3, termios.3, unlocked_stdio.3, wcswidth.3, hd.4, rtc.4, st.4, core.5, dir_colors.5, elf.5, proc.5, arp.7, ascii.7, boot.7, bootparam.7, charsets.7, futex.7, ip.7, iso_8859-11.7, man-pages.7, man.7, mdoc.samples.7, path_resolution.7, pipe.7, posixoptions.7, unicode.7, unix.7, uri.7, utf-8.7, ld.so.8: s/non-/non/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 17:20:12 +00:00
|
|
|
(nonvolatile ram).
|
2004-11-03 13:51:07 +00:00
|
|
|
|
|
|
|
The parameters stored in the nvram vary between
|
|
|
|
systems, but as a minimum, the hardware boot program
|
|
|
|
should know what is the boot device, or which devices
|
|
|
|
to probe as possible boot devices.
|
|
|
|
|
|
|
|
Then the hardware boot stage accesses the boot device,
|
|
|
|
loads the OS Loader, which is located on a fixed position
|
|
|
|
on the boot device, and transfers control to it.
|
2007-04-12 22:42:49 +00:00
|
|
|
.TP
|
2004-11-03 13:51:07 +00:00
|
|
|
Note:
|
2007-04-12 22:42:49 +00:00
|
|
|
We do not cover here booting from network.
|
|
|
|
Those who want
|
2004-11-03 13:51:07 +00:00
|
|
|
to investigate this subject may want to research:
|
|
|
|
DHCP, TFTP, PXE, Etherboot.
|
|
|
|
.SS "OS Loader"
|
|
|
|
In PC, the OS Loader is located in the first sector
|
|
|
|
of the boot device \- this is the \fBMBR\fR
|
|
|
|
(Master Boot Record).
|
|
|
|
|
|
|
|
In most systems, this primary loader is very
|
2007-04-12 22:42:49 +00:00
|
|
|
limited due to various constraints.
|
2007-12-25 22:02:19 +00:00
|
|
|
Even on non-PC systems
|
2004-11-03 13:51:07 +00:00
|
|
|
there are some limitations to the size and complexity
|
|
|
|
of this loader, but the size limitation of the PC MBR
|
|
|
|
(512 bytes including the partition table) makes it
|
|
|
|
almost impossible to squeeze a full OS Loader into it.
|
|
|
|
|
|
|
|
Therefore, most operating systems make the primary loader
|
|
|
|
call a secondary OS loader which may be located on
|
|
|
|
a specified disk partition.
|
|
|
|
|
|
|
|
In Linux the OS loader is normally
|
|
|
|
.BR lilo (8)
|
|
|
|
or
|
|
|
|
.BR grub (8).
|
|
|
|
Both of them may install either as secondary loaders
|
|
|
|
(where the DOS installed MBR points to them), or
|
|
|
|
as a two part loader where they provide special MBR
|
|
|
|
containing the bootstrap code to load the second part
|
|
|
|
of the loader from the root partition.
|
|
|
|
|
|
|
|
The main job of the OS Loader is to locate the kernel
|
2007-04-12 22:42:49 +00:00
|
|
|
on the disk, load it and run it.
|
|
|
|
Most OS loaders allow
|
2004-11-03 13:51:07 +00:00
|
|
|
interactive use, to enable specification of alternative
|
|
|
|
kernel (maybe a backup in case the last compiled one
|
|
|
|
isn't functioning) and to pass optional parameters
|
|
|
|
to the kernel.
|
|
|
|
.SS "Kernel Startup"
|
|
|
|
When the kernel is loaded, it initializes the devices (via
|
|
|
|
their drivers), starts the swapper (it is a "kernel process",
|
|
|
|
called kswapd in modern Linux kernels), and mounts the root
|
|
|
|
file system (/).
|
|
|
|
|
|
|
|
Some of the parameters that may be passed to the kernel
|
|
|
|
relate to these activities (e.g: You can override the
|
2007-04-12 22:42:49 +00:00
|
|
|
default root file system).
|
|
|
|
For further information
|
2004-11-03 13:51:07 +00:00
|
|
|
on Linux kernel parameters read
|
|
|
|
.BR bootparam (7).
|
|
|
|
|
|
|
|
Only then the kernel creates the first (user land)
|
2007-04-12 22:42:49 +00:00
|
|
|
process which is numbered 1.
|
|
|
|
This process executes the
|
2004-11-03 13:51:07 +00:00
|
|
|
program
|
|
|
|
.IR /sbin/init ,
|
|
|
|
passing any parameters that weren't handled by the kernel already.
|
|
|
|
.SS "init and inittab"
|
|
|
|
When init starts it reads
|
|
|
|
.I /etc/inittab
|
|
|
|
for further instructions.
|
|
|
|
This file defines what should be run in different \fIrun-levels\fR.
|
|
|
|
|
|
|
|
This gives the system administrator an easy management scheme, where
|
2012-05-06 20:11:42 +00:00
|
|
|
each run-level is associated with a set of services (e.g,
|
2007-12-25 22:02:19 +00:00
|
|
|
\fBS\fR is \fIsingle-user\fR, on \fB2\fR most network
|
2012-05-06 20:11:42 +00:00
|
|
|
services start).
|
2007-04-12 22:42:49 +00:00
|
|
|
The administrator may change the current
|
2004-11-03 13:51:07 +00:00
|
|
|
run-level via
|
|
|
|
.BR init (8)
|
|
|
|
and query the current run-level via
|
|
|
|
.BR runlevel (8).
|
|
|
|
|
|
|
|
However, since it is not convenient to manage individual services
|
|
|
|
by editing this file, inittab only bootstraps a set of scripts
|
|
|
|
that actually start/stop the individual services.
|
|
|
|
.SS "Boot Scripts"
|
|
|
|
|
2007-04-12 22:42:49 +00:00
|
|
|
.TP
|
2004-11-03 13:51:07 +00:00
|
|
|
Note:
|
2010-10-15 05:48:02 +00:00
|
|
|
The following description applies to System V release 4-based systems, which
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
currently covers most commercial UNIX systems (Solaris, HP-UX, Irix, Tru64)
|
2010-11-04 06:25:37 +00:00
|
|
|
as well as the major Linux distributions (Red Hat, Debian, Mandriva,
|
2010-09-19 17:53:40 +00:00
|
|
|
SUSE, Ubuntu).
|
2007-04-12 22:42:49 +00:00
|
|
|
Some systems (Slackware Linux, FreeBSD, OpenBSD)
|
2004-11-03 13:51:07 +00:00
|
|
|
have a somewhat different scheme of boot scripts.
|
|
|
|
.LP
|
|
|
|
For each managed service (mail, nfs server, cron, etc.) there is
|
|
|
|
a single startup script located in a specific directory
|
|
|
|
.RI ( /etc/init.d
|
|
|
|
in most versions of Linux).
|
|
|
|
Each of these scripts accepts as a single argument
|
2008-06-05 20:14:50 +00:00
|
|
|
the word "start" \-\- causing it to start the service, or the word
|
|
|
|
\&"stop" \-\- causing it to stop the service.
|
2007-04-12 22:42:49 +00:00
|
|
|
The script may optionally
|
2008-06-05 20:14:50 +00:00
|
|
|
accept other "convenience" parameters (e.g: "restart", to stop and then
|
|
|
|
start, "status" do display the service status).
|
2007-04-12 22:42:49 +00:00
|
|
|
Running the script
|
2004-11-03 13:51:07 +00:00
|
|
|
without parameters displays the possible arguments.
|
|
|
|
.SS "Sequencing Directories"
|
|
|
|
To make specific scripts start/stop at specific run-levels and in
|
2007-04-12 22:42:49 +00:00
|
|
|
specific order, there are \fIsequencing directories\fR.
|
|
|
|
These
|
|
|
|
are normally in \fI/etc/rc[0\-6S].d\fR.
|
|
|
|
In each of these directories
|
2008-07-15 13:24:00 +00:00
|
|
|
there are links (usually symbolic) to the scripts in the \fI/etc/init.d\fR
|
2004-11-03 13:51:07 +00:00
|
|
|
directory.
|
|
|
|
|
2007-04-12 22:42:49 +00:00
|
|
|
A primary script (usually \fI/etc/rc\fR) is called from
|
2005-10-19 14:48:35 +00:00
|
|
|
.BR inittab (5)
|
2004-11-03 13:51:07 +00:00
|
|
|
and calls the services scripts via the links in the sequencing directories.
|
2008-06-09 15:49:35 +00:00
|
|
|
All links with names that begin with \(aqS\(aq are being called with
|
2008-06-05 20:14:50 +00:00
|
|
|
the argument "start" (thereby starting the service).
|
2007-04-12 22:42:49 +00:00
|
|
|
All links with
|
2008-06-09 15:49:35 +00:00
|
|
|
names that begin with \(aqK\(aq are being called with the argument "stop"
|
2004-11-03 13:51:07 +00:00
|
|
|
(thereby stopping the service).
|
|
|
|
|
|
|
|
To define the starting or stopping order within the same run-level,
|
|
|
|
the names of the links contain order-numbers.
|
|
|
|
Also, to make the names clearer, they usually
|
2007-04-12 22:42:49 +00:00
|
|
|
end with the name of the service they refer to.
|
|
|
|
Example:
|
2004-11-03 13:51:07 +00:00
|
|
|
the link \fI/etc/rc2.d/S80sendmail\fR starts the sendmail service on
|
2007-04-12 22:42:49 +00:00
|
|
|
runlevel 2.
|
|
|
|
This happens after \fI/etc/rc2.d/S12syslog\fR is run
|
2004-11-03 13:51:07 +00:00
|
|
|
but before \fI/etc/rc2.d/S90xfs\fR is run.
|
|
|
|
|
|
|
|
To manage the boot order and run-levels, we have to manage these links.
|
|
|
|
However, on many versions of Linux, there are tools to help with this task
|
|
|
|
(e.g:
|
|
|
|
.BR chkconfig (8)).
|
|
|
|
.SS "Boot Configuration"
|
2008-03-19 08:37:35 +00:00
|
|
|
Usually the daemons started may optionally receive command-line options
|
2007-04-12 22:42:49 +00:00
|
|
|
and parameters.
|
|
|
|
To allow system administrators to change these
|
|
|
|
parameters without editing the boot scripts themselves,
|
|
|
|
configuration files are used.
|
|
|
|
These are located in a specific
|
2010-09-22 16:22:13 +00:00
|
|
|
directory (\fI/etc/sysconfig\fR on Red Hat systems) and are
|
2004-11-03 13:51:07 +00:00
|
|
|
used by the boot scripts.
|
|
|
|
|
intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 04:45:38 +00:00
|
|
|
In older UNIX systems, these files contained the actual command line
|
2004-11-03 13:51:07 +00:00
|
|
|
options for the daemons, but in modern Linux systems (and also
|
2007-04-12 22:42:49 +00:00
|
|
|
in HP-UX), these files just contain shell variables.
|
2007-05-12 13:28:15 +00:00
|
|
|
The boot scripts in \fI/etc/init.d\fR
|
|
|
|
\fBsource\fR the configuration
|
2004-11-03 13:51:07 +00:00
|
|
|
files, and then use the variable values.
|
2007-08-10 07:22:13 +00:00
|
|
|
.SH FILES
|
2007-04-12 22:42:49 +00:00
|
|
|
.LP
|
2004-11-03 13:51:07 +00:00
|
|
|
.IR /etc/init.d/ ,
|
2007-06-01 05:18:41 +00:00
|
|
|
.IR /etc/rc[S0\-6].d/ ,
|
2004-11-03 13:51:07 +00:00
|
|
|
.I /etc/sysconfig/
|
2007-08-10 07:22:13 +00:00
|
|
|
.SH SEE ALSO
|
2004-11-03 13:51:07 +00:00
|
|
|
.BR inittab (5),
|
|
|
|
.BR bootparam (7),
|
|
|
|
.BR init (8),
|
|
|
|
.BR runlevel (8),
|
|
|
|
.BR shutdown (8)
|