commit a1e48829b64e18e0908c8afc926b37a72e9cbb92
parent 27f739bf701a40f49908d7793d89e16533eb39e1
Author: Gerrit Pape <pape@smarden.org>
Date: Tue, 21 Nov 2006 15:14:05 +0000
html.
Diffstat:
1 file changed, 22 insertions(+), 23 deletions(-)
diff --git a/doc/runsv.8.html b/doc/runsv.8.html
@@ -110,34 +110,33 @@ Example:
to send a TERM signal to the socklog-unix service, either do # sv term
/var/service/socklog-unix<br>
or<br>
- # echo -n t >/var/service/socklog-unix/supervise/control<br>
+ # printf t >/var/service/socklog-unix/supervise/control<br>
<p>
-If <i><b>echo</b>(1)</i> on your systems does not provide the -n option, leave it out,
-<b>runsv</b> ignores unknown characters written to the control pipe. <i><b>echo</b>(1)</i> usually
-blocks if no <b>runsv</b> process is running in the service directory.
-<h2><a name='sect4'>Customize
-Control</a></h2>
-For each control character <i>c</i> sent to the control pipe, <b>runsv</b> first
-checks if <i>service/control/<i>c</i> exists and is executable. If so, it starts <i>service</i>/control/<i>c</i>
-and waits for it to terminate, before interpreting the command. If the program
-exits with return code 0, <b>runsv</b> refrains from sending the service the corresponding
-signal. The command <i>o</i> is always considered as command <i>u</i>. On command <i>d</i> first
-<i>service</i>/control/t</i> is checked, and then <i>service/control/d.</i> On command <i>x</i> first
-<i>service/control/t</i> is checked, and then <i>service/control/x.</i> The control of
-the optional log service cannot be customized.
+<i><b>printf</b>(1)</i> usually blocks if no <b>runsv</b> process is running in the service
+directory.
+<h2><a name='sect4'>Customize Control</a></h2>
+For each control character <i>c</i> sent to the control
+pipe, <b>runsv</b> first checks if <i>service/control/<i>c</i> exists and is executable.
+If so, it starts <i>service</i>/control/<i>c</i> and waits for it to terminate, before
+interpreting the command. If the program exits with return code 0, <b>runsv</b>
+refrains from sending the service the corresponding signal. The command
+<i>o</i> is always considered as command <i>u</i>. On command <i>d</i> first <i>service</i>/control/t</i>
+is checked, and then <i>service/control/d.</i> On command <i>x</i> first <i>service/control/t</i>
+is checked, and then <i>service/control/x.</i> The control of the optional log
+service cannot be customized.
<h2><a name='sect5'>Signals</a></h2>
-If <b>runsv</b> receives
-a TERM signal, it acts as if the character x was written to the control
-pipe.
+If <b>runsv</b> receives a TERM signal, it
+acts as if the character x was written to the control pipe.
<h2><a name='sect6'>Exit Codes</a></h2>
-<b>runsv</b> exits 111 on an error on startup or if another <b>runsv</b>
-is running in <i>service</i>. <p>
+<b>runsv</b>
+exits 111 on an error on startup or if another <b>runsv</b> is running in <i>service</i>.
+<p>
<b>runsv</b> exits 0 if it was told to exit.
<h2><a name='sect7'>See Also</a></h2>
-<i>sv(8)</i>,
-<i>chpst(8)</i>, <i>svlogd(8)</i>, <i>runit(8)</i>, <i>runit-init(8)</i>, <i>runsvdir(8)</i>, <i>runsvchdir(8)</i>,
-<i>utmpset(8)</i> <p>
-<i>http://smarden.org/runit/</i>
+<i>sv(8)</i>, <i>chpst(8)</i>, <i>svlogd(8)</i>,
+<i>runit(8)</i>, <i>runit-init(8)</i>, <i>runsvdir(8)</i>, <i>runsvchdir(8)</i>, <i>utmpset(8)</i> <p>
+<i>http://smarden.org/runit/</i>
+
<h2><a name='sect8'>Author</a></h2>
Gerrit Pape <pape@smarden.org> <p>