Actually having the $FreeBSD$ tag expanded in the example rc.d script
did not end up looking as cool as I thought it would, so switch to an unexpanded example. Fix the text in the new paragraph to work better around the markup.
This commit is contained in:
parent
c12cd8b0d1
commit
6152de8557
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=35139
1 changed files with 5 additions and 4 deletions
|
@ -8447,7 +8447,8 @@ CFLAGS+= -DLUA_VERSION_STRING="${VER_STR}"
|
||||||
<para>Example simple <filename>rc.d</filename> script:</para>
|
<para>Example simple <filename>rc.d</filename> script:</para>
|
||||||
|
|
||||||
<programlisting>#!/bin/sh
|
<programlisting>#!/bin/sh
|
||||||
# $FreeBSD$
|
|
||||||
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
# PROVIDE: doormand
|
# PROVIDE: doormand
|
||||||
# REQUIRE: LOGIN
|
# REQUIRE: LOGIN
|
||||||
|
@ -8481,10 +8482,10 @@ run_rc_command "$1"</programlisting>
|
||||||
|
|
||||||
<para> Unless there is a good reason to start the service
|
<para> Unless there is a good reason to start the service
|
||||||
earlier all ports scripts should use
|
earlier all ports scripts should use
|
||||||
<programlisting>REQUIRE: LOGIN</programlisting>. If the service
|
<programlisting>REQUIRE: LOGIN</programlisting> If the service
|
||||||
runs as a particular user (other than root) this is mandatory.
|
runs as a particular user (other than root) this is mandatory.
|
||||||
The <programlisting>KEYWORD: shutdown</programlisting>
|
<programlisting>KEYWORD: shutdown</programlisting>
|
||||||
included in the script above is there because the mythical port
|
is included in the script above because the mythical port
|
||||||
we are using as an example starts a service, and should be shut
|
we are using as an example starts a service, and should be shut
|
||||||
down cleanly when the system shuts down. If the script is not
|
down cleanly when the system shuts down. If the script is not
|
||||||
starting a persistent service this is not necessary.</para>
|
starting a persistent service this is not necessary.</para>
|
||||||
|
|
Loading…
Reference in a new issue