66-echo is an exact copy of <ahref="https://skarnet.org/software/s6-portable-utils/s6-echo.html">s6-echo</a> program. It only provide to avoid the dependencies of <ahref="https://skarnet.org/software/s6-portable-utils/">s6-portable-utils</a> package at <tt>66</tt> tools compilation time. Refers to the <ahref="https://skarnet.org/software/s6-portable-utils/s6-echo.html">s6-echo</a> documentation page for futher information.
the verbosity of the command. <tt>1(Default)</tt>: Only print
error messages. <tt>2</tt>: Also print warning messages.
<tt>3</tt>: Also print debugging messages.
</li>
<li>
<tt>-t <em>tree</em> </tt> : ignored. This option is only provide to keep compatibility between <tt>66</tt> tools.
</li>
<li>
<tt>-d <em>dir</em> </tt> : use <em>dir</em> as configuration file directory instead of the default one.
</li>
<li>
<tt>-L </tt> : lists the environment variable of <em>service</em>.
</li>
<li>
<tt>-r <em>key=value</em></tt> : replace the <em>key=value</em> pair by the given one. The <em>key=value</em> need to be double-quoted in case of multiple arguments. Backslash '\' should be used to properly parse a double-quoted element.
Any '!' character found at begins of a <tt>key=value</tt> from the configuration <em>service</em> file is ignored at replacement time. For example, a <tt>key=value</tt> corresponding to:
66-scanctl sends signal to a <em>scandir</em>. This is a safe wrapper around <ahref="https://skarnet.org/software/s6/s6-svscanctl.html">s6-svscanctl</a>.
66-scandir sends <em>signal</em> to an already running <ahref="66-scandir.html">scandir</a> at <em>live</em> location where <em>live</em> is <tt>/run/66</tt> by default or the resulting path provided by the <tt>-l</tt> option.
If <tt><em>owner</em></tt> is ommited, the user of the current process will be used instead.
</p>
<h2> Options </h2>
<ul>
<li><tt>-h </tt> : print the help. </li>
the verbosity of the command. <tt>1(Default)</tt>: Only print
error messages. <tt>2</tt>: Also print warning messages.
<tt>3</tt>: Also print debugging messages.
</li>
<li>
<tt>-l <em>live</em></tt> : sends signal to a <em>scandir</em> at <em>live</em>. Default is
<tt>/run/66</tt>. The default can also be changed at compile-time by
passing the <tt>--livedir=<em>live</em></tt> option to <tt>./configure</tt>.
An absolute path is expected and should be under a writable filesystem
- likely a RAM filesystem.
</li>
<li>
<tt>-o <em>owner</em></tt> : sends signal to a <em>scandir</em> owned by <em>owner</em> instead of the current owner of the process. <em>owner</em> should have the correct permissions access to deal with the <em>scandir</em>.
</li>
</ul>
<h2id=signals> Signals </h2>
<p>
Any signal accepted by <tt><em>s6-svscanctl</em></tt>
can be passed just without the '-' character. If, for example, you
want to send a <tt><em>-t</em></tt> signal, you need to use:
<tt><em>66‑scanctl t</em></tt>. A series
of commands is also accepted in the same way: <tt><em>66‑scanctl st</em></tt>.
A few convenient keywords were added to avoid having to remember
basic and useful series of commands like:
<ul>
<li><tt>reload </tt> : equal to <tt><strong><em>‑an</em></strong></tt></li>
<li><tt>interrupt </tt> : equal to <tt><strong><em>‑i</em></strong></tt></li>
<li><tt>quit </tt> : equal to <tt><strong><em>‑q</em></strong></tt></li>
<li><tt>halt </tt> : equal to <tt><strong><em>‑0</em></strong></tt>.
<li><tt>reboot </tt> : equal to <tt><strong><em>‑6</em></strong></tt>.
<li><tt>poweroff </tt> : equal to <tt><strong><em>‑7</em></strong></tt>.
</ul>
</p>
<h2> Usage examples</h2>
<pre> 66‑scanctl reload</pre>
<p>
Updates the process supervision tree
to exactly match the services listed in <tt>scandir</tt>.