|
@@ -23,8 +23,7 @@
|
|
|
<sect2 role="package">
|
|
|
<title/>
|
|
|
|
|
|
- <para>The Sysvinit package contains programs for controlling the startup,
|
|
|
- running, and shutdown of the system.</para>
|
|
|
+ <para>Sysvinit 软件包包含控制系统启动、运行和关闭的程序。</para>
|
|
|
|
|
|
<segmentedlist>
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
@@ -67,8 +66,8 @@
|
|
|
-e '/mesg/d' \
|
|
|
-e 's/= sulogin(\.8)?/=/' src/Makefile</userinput></screen>
|
|
|
-->
|
|
|
- <para>First, apply a patch that removes several programs installed by other
|
|
|
- packages, clarifies a message, and fixes a compiler warning:</para>
|
|
|
+ <para>首先,应用一个补丁,它会删除 sysvinit 中其他软件包已经安装的程序,
|
|
|
+ 使一条消息更加清晰,并修复一个引发编译器警告的问题:</para>
|
|
|
|
|
|
<screen><userinput remap="pre">patch -Np1 -i ../&sysvinit-consolidated-patch;</userinput></screen>
|
|
|
|
|
@@ -92,8 +91,8 @@
|
|
|
|
|
|
<seglistitem>
|
|
|
<seg>bootlogd, fstab-decode, halt, init, killall5,
|
|
|
- poweroff (link to halt), reboot (link to halt), runlevel,
|
|
|
- shutdown, and telinit (link to init)</seg>
|
|
|
+ poweroff (到 halt 的链接), reboot (到 halt 的链接), runlevel,
|
|
|
+ shutdown, 以及 telinit (到 init 的链接)</seg>
|
|
|
</seglistitem>
|
|
|
</segmentedlist>
|
|
|
|
|
@@ -105,7 +104,7 @@
|
|
|
<varlistentry id="bootlogd">
|
|
|
<term><command>bootlogd</command></term>
|
|
|
<listitem>
|
|
|
- <para>Logs boot messages to a log file</para>
|
|
|
+ <para>将引导消息写入日志文件</para>
|
|
|
<indexterm zone="ch-system-sysvinit bootlogd">
|
|
|
<primary sortas="b-bootlogd">bootlogd</primary>
|
|
|
</indexterm>
|
|
@@ -115,7 +114,7 @@
|
|
|
<varlistentry id="fstab-decode">
|
|
|
<term><command>fstab-decode</command></term>
|
|
|
<listitem>
|
|
|
- <para>Run a command with fstab-encoded arguments</para>
|
|
|
+ <para>以 fstab 编码的参数运行命令</para>
|
|
|
<indexterm zone="ch-system-sysvinit fstab-decode">
|
|
|
<primary sortas="b-fstab-decode">fstab-decode</primary>
|
|
|
</indexterm>
|
|
@@ -125,11 +124,10 @@
|
|
|
<varlistentry id="halt-sysv">
|
|
|
<term><command>halt</command></term>
|
|
|
<listitem>
|
|
|
- <para>Normally invokes <command>shutdown</command> with the
|
|
|
- <parameter>-h</parameter> option, except when already in run-level 0,
|
|
|
- then it tells the kernel to halt the system; it notes in the
|
|
|
- file <filename>/var/log/wtmp</filename> that the system is being
|
|
|
- brought down</para>
|
|
|
+ <para>通常以 <parameter>-h</parameter> 参数调用
|
|
|
+ <command>-h</command>,除非已经处于运行级别 0,
|
|
|
+ 这样它会通知内核停止系统运行;在系统被关闭时,它在
|
|
|
+ <filename>/var/log/wtmp</filename> 文件中进行记录</para>
|
|
|
<indexterm zone="ch-system-sysvinit halt-sysv">
|
|
|
<primary sortas="b-halt">halt</primary>
|
|
|
</indexterm>
|
|
@@ -139,9 +137,8 @@
|
|
|
<varlistentry id="init-sysv">
|
|
|
<term><command>init</command></term>
|
|
|
<listitem>
|
|
|
- <para>The first process to be started when the kernel has initialized
|
|
|
- the hardware which takes over the boot process and starts all the
|
|
|
- proceses specified in its configuration file</para>
|
|
|
+ <para>内核初始化硬件后启动的第一个进程,它接管引导过程,
|
|
|
+ 启动其配置文件中指定的所有进程</para>
|
|
|
<indexterm zone="ch-system-sysvinit init-sysv">
|
|
|
<primary sortas="b-init">init</primary>
|
|
|
</indexterm>
|
|
@@ -151,8 +148,8 @@
|
|
|
<varlistentry id="killall5">
|
|
|
<term><command>killall5</command></term>
|
|
|
<listitem>
|
|
|
- <para>Sends a signal to all processes, except the processes in its own
|
|
|
- session so it will not kill its parent shell</para>
|
|
|
+ <para>向除了自身会话中以外的所有进程发送信号,
|
|
|
+ 杀死多数进程,但不会杀死作为它本身父进程的 shell</para>
|
|
|
<indexterm zone="ch-system-sysvinit killall5">
|
|
|
<primary sortas="b-killall5">killall5</primary>
|
|
|
</indexterm>
|
|
@@ -162,8 +159,8 @@
|
|
|
<varlistentry id="poweroff-sysv">
|
|
|
<term><command>poweroff</command></term>
|
|
|
<listitem>
|
|
|
- <para>Tells the kernel to halt the system and switch off the computer
|
|
|
- (see <command>halt</command>)</para>
|
|
|
+ <para>告诉内核停止系统运行并关闭电源
|
|
|
+ (参阅 <command>halt</command>)</para>
|
|
|
<indexterm zone="ch-system-sysvinit poweroff-sysv">
|
|
|
<primary sortas="b-poweroff">poweroff</primary>
|
|
|
</indexterm>
|
|
@@ -173,7 +170,7 @@
|
|
|
<varlistentry id="reboot-sysv">
|
|
|
<term><command>reboot</command></term>
|
|
|
<listitem>
|
|
|
- <para>Tells the kernel to reboot the system (see
|
|
|
+ <para>告诉内核重启系统 (参阅
|
|
|
<command>halt</command>)</para>
|
|
|
<indexterm zone="ch-system-sysvinit reboot-sysv">
|
|
|
<primary sortas="b-reboot">reboot</primary>
|
|
@@ -184,8 +181,9 @@
|
|
|
<varlistentry id="runlevel-sysv">
|
|
|
<term><command>runlevel</command></term>
|
|
|
<listitem>
|
|
|
- <para>Reports the previous and the current run-level, as noted in the
|
|
|
- last run-level record in <filename>/var/run/utmp</filename></para>
|
|
|
+ <para>报告上一次的和当前的系统运行级别,
|
|
|
+ 上一次系统运行级别记录在 <filename>/var/run/utmp</filename>
|
|
|
+ 中</para>
|
|
|
<indexterm zone="ch-system-sysvinit runlevel-sysv">
|
|
|
<primary sortas="b-runlevel">runlevel</primary>
|
|
|
</indexterm>
|
|
@@ -195,8 +193,8 @@
|
|
|
<varlistentry id="shutdown-sysv">
|
|
|
<term><command>shutdown</command></term>
|
|
|
<listitem>
|
|
|
- <para>Brings the system down in a secure way, signaling all processes
|
|
|
- and notifying all logged-in users</para>
|
|
|
+ <para>安全地将系统下线,向所有进程发送信号,并通知所有登录用户
|
|
|
+ </para>
|
|
|
<indexterm zone="ch-system-sysvinit shutdown-sysv">
|
|
|
<primary sortas="b-shutdown">shutdown</primary>
|
|
|
</indexterm>
|
|
@@ -206,7 +204,7 @@
|
|
|
<varlistentry id="telinit-sysv">
|
|
|
<term><command>telinit</command></term>
|
|
|
<listitem>
|
|
|
- <para>Tells <command>init</command> which run-level to change to</para>
|
|
|
+ <para>告诉 <command>init</command> 切换到哪个运行级别</para>
|
|
|
<indexterm zone="ch-system-sysvinit telinit-sysv">
|
|
|
<primary sortas="b-telinit">telinit</primary>
|
|
|
</indexterm>
|