[svnbook] r5681 committed - branches/1.8/zh/book/ ch06-server-configuration.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Sat May 12 07:48:36 CDT 2018
Revision: 5681
http://sourceforge.net/p/svnbook/source/5681
Author: wuzhouhui
Date: 2018-05-12 12:48:32 +0000 (Sat, 12 May 2018)
Log Message:
-----------
1.8/zh: translation of chapter 6 in progress
Modified Paths:
--------------
branches/1.8/zh/book/ch06-server-configuration.xml
Modified: branches/1.8/zh/book/ch06-server-configuration.xml
===================================================================
--- branches/1.8/zh/book/ch06-server-configuration.xml 2018-05-10 14:26:32 UTC (rev 5680)
+++ branches/1.8/zh/book/ch06-server-configuration.xml 2018-05-12 12:48:32 UTC (rev 5681)
@@ -1354,6 +1354,7 @@
the lifecycle of those jobs.</para>
-->
+ <!--
<para>When configured to run as a <command>launchd</command>
job, <command>svnserve</command> is automatically launched
on demand whenever incoming Subversion
@@ -1362,7 +1363,14 @@
which requires you to manually invoke
<command>svnserve</command> as a long-running
background process.</para>
+ -->
+ <para>如果 <command>svnserve</command> 被配置成作为一个
+ <command>launchd</command> 作业, 那么当有 <literal>svn://</literal>
+ 网络流量需要处理时, 将自动启动 <command>svnserve</command>. 这要比
+ 手动地启动 <command>svnserve</command> 并把它作为长时间运行的后台
+ 进程要方便得多.</para>
+ <!--
<para>To configure <command>svnserve</command> as
a <command>launchd</command> job, first create a job
definition file named
@@ -1369,9 +1377,19 @@
<filename>/Library/LaunchDaemons/org.apache.subversion.svnserve.plist</filename>.
<xref linkend="svn.serverconfig.svnserve.invoking.launchd.ex-1"/>
provides an example of such a file.</para>
+ -->
+ <para>为了把 <command>svnserve</command> 配置成一个
+ <command>launchd</command> 作业, 首先创建一个名为
+ <filename>/Library/LaunchDaemons/org.apache.subversion.svnserve.plist</filename>
+ 的作业定义文件, <xref
+ linkend="svn.serverconfig.svnserve.invoking.launchd.ex-1"/> 展示
+ 了该文件的一个例子.</para>
<example id="svn.serverconfig.svnserve.invoking.launchd.ex-1">
+ <!--
<title>A sample svnserve launchd job definition</title>
+ -->
+ <title>svnserve 的 launchd 作业定义的一个示例</title>
<programlisting>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
@@ -1415,6 +1433,7 @@
</example>
<warning>
+ <!--
<para>The <command>launchd</command> system can be somewhat
challenging to learn. Fortunately, documentation exists
for the commands described in this section. For example,
@@ -1422,10 +1441,21 @@
line to see the manual page for <command>launchd</command>
itself, <userinput>man launchd.plist</userinput> to read
about the job definition format, etc.</para>
+ -->
+ <para><command>launchd</command> 系统学习起来有一定的困难, 幸运的是
+ 本节所介绍的 <command>launchd</command> 命令都有相关的文档可供
+ 参考, 例如执行 <userinput>man launchd</userinput> 查看
+ <command>launchd</command> 的手册页, 执行
+ <userinput>man launchd.plist</userinput> 查看作业定义文件的格式.
+ </para>
</warning>
+ <!--
<para>Once your job definition file is created, you can
activate the job using <command>launchctl load</command>:</para>
+ -->
+ <para>作业定义文件创建完毕后, 就可以用 <command>launchctl
+ load</command> 激活作业:</para>
<informalexample>
<screen>
@@ -1434,6 +1464,7 @@
</screen>
</informalexample>
+ <!--
<para>To be clear, this action doesn't actually launch
<command>svnserve</command> yet. It simply tells
<command>launchd</command> how to fire up
@@ -1440,6 +1471,12 @@
<command>svnserve</command> when incoming networking traffic
arrives on the <literal>svn</literal> network port; it will
be terminated it after the traffic has been handled.</para>
+ -->
+ <para>需要澄清的是, 上面的命令并没有启动 <command>svnserve</command>,
+ 它只是告诉 <command>launchd</command> 当网络端口
+ <literal>svn</literal> 有网络数据到达时, 如何启动
+ <command>svnserve</command>, 当网络数据处理完毕后,
+ <command>svnserve</command> 进程就会终止.</para>
<note>
<para>Because we want <command>svnserve</command> to be a
More information about the svnbook-dev
mailing list