Improve the wording around startup scripts to be clearer.

This commit is contained in:
Brad Davis 2015-02-13 15:43:42 +00:00
parent 536e382a8b
commit ac716d27c8
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=46268

View file

@ -4367,15 +4367,18 @@ post-patch:
article</link> on practical aspects of
<filename>rc.d</filename> scripting.</para>
<para>One or more <filename>rc.d</filename> scripts can be
installed:</para>
<para>With a mythical port called
<replaceable>doorman</replaceable>, which needs to start a
<replaceable>doormand</replaceable> daemon. Add the following
to the <filename>Makefile</filename>:</para>
<programlisting>USE_RC_SUBR= doormand</programlisting>
<para>Scripts must be placed in the <filename>files</filename>
<para>Multiple scripts may be listed and will be installed.
Scripts must be placed in the <filename>files</filename>
subdirectory and a <literal>.in</literal> suffix must be added
to their filename. Standard <varname>SUB_LIST</varname>
expansions will be used for this file. Use of the
expansions will be ran against this file. Use of the
<literal>%%PREFIX%%</literal> and
<literal>%%LOCALBASE%%</literal> expansions is strongly
encouraged as well. More on <varname>SUB_LIST</varname> in
@ -4387,7 +4390,8 @@ post-patch:
by ports) are included in the overall &man.rcorder.8; of the
base system.</para>
<para>Example simple <filename>rc.d</filename> script:</para>
<para>An example simple <filename>rc.d</filename> script to start
the doormand daemon:</para>
<programlisting>#!/bin/sh